Aller au contenu principal
Jahia Store
FR

Jahia Store

community
Télécharger 5.2.1

Informations

Identifiant du module
jahia-store
Identifiant de groupe
org.jahia.community
Statut
community
Catégorie
Admin Features
Auteur
JSG
Site web du développeur
http://www.jahia.com
Nécessite Jahia
8.2.2.1
Publié le
2026-11-25
Source
scm:git:git@github.com:Jahia/privateappstore.git

The Private App Store ("Forge") backend — a Jahia 8.2 Java/OSGi module providing the JCR content model, the GraphQL admin API, the Jahia Actions for authoring (module upload, reviews, …), background jobs, a Maven proxy, and the moduleList.json feed.

Its website and in-site administration UI are provided by the sibling jahia-store-template JavaScript module.

Captures d'écran

Versions

What's Changed

Full Changelog: 5_2_0...5_2_1

Nécessite Jahia 8.2.2.1Publié le 2026-11-25

Security

  • JSTORE-SEC-005: anonymous visitors reached unpublished store content outside the module page.
    The published flag of modules, packages and versions was enforced only when the module page was
    rendered. Other paths ignored it: the module-list RSS feed (feed.xml) listed the published
    versions of unpublished modules with their download links, the artifact of a draft version
    downloaded from /files and from /modules/mavenproxy, the module page redirected a draft to the
    home page (which told anyone that the draft existed), and the anonymous moduleList.json and
    securityUpdates.json views were open on every content folder of the repository. Every path now
    applies the same rule: a module, package or version is public only when it and everything above it
    are published.

    • RSS feed: a version is listed only when the version and its module are published, as in
      moduleList.json. It lists no draft, even for its owner.
    • /files: the artifact of a draft version, or of any version of an unpublished module, answers 404
      to anyone who cannot edit the draft.
    • /modules/mavenproxy: an artifact (or the maven-metadata.xml) of an unpublished module or
      version of the catalogue answers 404 to anyone who cannot edit it. Maven coordinates that the
      catalogue does not list are still served, as before.
    • Module and package pages: a draft answers 404, the same answer as a page that does not exist,
      instead of redirecting to the home page.
    • moduleList.json and securityUpdates.json are served only at a site's
      contents/modules-repository folder.
    • moduleList.json is unchanged. It still returns the JCR path of the store folder and of each
      published module: Jahia's module manager needs them.

    Who is impacted: every store with unpublished modules or versions in the live workspace.

    What changes for owners: module owners and administrators still open their draft pages and
    download their draft artifacts from /files and through the proxy. A visitor who follows an old
    link to an unpublished module now gets the "page not found" page instead of the home page.

    What to do: nothing.

  • JSTORE-SEC-012: the media MIME guard missed files written in live and files nested deep in a
    module. The guard removes a script-capable file (SVG, HTML, XML, or bytes that start with markup)
    stored under a store module or package, so that the file servlet cannot serve it inline. It watched
    only the edit workspace, but store developers write in live through the store front-end, and it
    stopped looking for the module after 32 parent nodes, so a file nested deeper was skipped. Such a
    file stayed in live and ran as script on the store's origin when a visitor opened it. The guard now
    watches both workspaces and has no depth limit.

    SVG and HTML are no longer accepted as module media at all, even when they are declared honestly.
    The guard removes any file in contents/modules-repository that is SVG or HTML by its declared MIME
    type, by its extension (.svg, .svgz, .html, .htm, .xhtml, .xht, .shtml), or by its
    content (<svg, <!doctype html, <html or <script in its first 512 bytes; this content check
    does not apply to module archives). Module icons and screenshots must be PNG, JPEG, GIF or WebP.

    The upload action also stores a package JAR or a
    JavaScript module tgz with the content type of its extension (application/java-archive,
    application/gzip) instead of the one the browser sent, and refuses a file that does not start with
    the zip or gzip signature (forge.uploadJar.error.wrong.format).

    Who is impacted: every installation where store developers can upload, and every module that
    uses an SVG icon or screenshot: a new SVG upload is removed, and its owner must upload a raster
    instead.

    What to do: nothing for new files. The guard checks a file when it is written, so a file planted
    before the upgrade stays: look for files under contents/modules-repository, in edit and in live,
    whose jcr:mimeType is an SVG, HTML or XML type, whose name has an SVG or HTML extension, or whose
    content starts with <, and delete them. Deploy jahia-store-template with the same rule, which
    refuses SVG and HTML in the icon and screenshot upload form.

  • JSTORE-SEC-001: a store's root category could point at another site's categories.
    The category operations of the store administration run in a system session, which ignores
    permissions. forge.setRootCategory accepted any category, so a user with the store settings
    permission (siteAdminForgeSettings) on one site could set as root a category of another site,
    then read, add, rename and delete categories there. forge.addCategory also accepted a name such
    as ../x, which created the node above the root category.

    • The root category must now be a category under /sites/systemsite/categories, the tree where
      Jahia keeps categories, or that node itself. forge.setRootCategory refuses any other category
      with an error and keeps the current root: a category of another site, one of the store's own
      site, or any node outside that tree.
    • The rule is checked again each time the stored root is used, because the settings file can hold
      a root set before this version. If the root is outside that tree, the Categories page shows no
      root and no category, forge.addCategory, forge.updateCategoryTitles and
      forge.deleteCategory are refused, and the module logs a warning that names the site.
    • A category name must be a single name: ., .., the characters / \ : [ ] | * and control
      characters are refused with an error, and nothing is created.

    Who is impacted: installations where a user holds the store settings permission on a site but
    must not change the categories of other sites.

    What to do: if a store's root category is not under /sites/systemsite/categories, the module
    logs The root category of site <siteKey> is not under /sites/systemsite/categories or
    The root category of site <siteKey> is not a category under /sites/systemsite/categories. Create
    the store's categories under /sites/systemsite/categories and set the new root in
    Store administration > Categories. Modules keep the categories already assigned to them, but
    the store only offers the children of the new root.

  • JSTORE-SEC-017: only the owner of a module or a store administrator can flag its versions as security
    fixes. The security flags of a module version (securityFix, securitySeverity,
    securityReferences, securityNote), which securityUpdates.json sends to every Jahia instance,
    could be written by any store developer on any module, because store-developer writes live content
    in the whole site. A developer could flag, change or unflag the versions of a module they do not own,
    and the feed did not say who did it. The module now refuses a change of these properties unless the
    writer holds the owner role on the module node (granted to the developer who uploaded the module) or
    jahiaForgeModerateModule there (store-administrator). Each accepted change records who made it and
    when, for audit, in two hidden properties of the version (securityFlaggedBy, securityFlaggedDate)
    that only the module sets. The feed does not include them and its format is unchanged.

    Who is impacted: stores that run a 5.2.0 snapshot. Released versions do not have the security
    flags.

    What changes: a store developer who uploaded only a version of another developer's module (SEC-381)
    can no longer flag it; the module owner or a store administrator can. A version flagged before this
    change has no securityFlaggedBy, so the feed does not list it and the module logs
    records nobody setting its security flag with its path: have the owner save its security
    information again. jahia-store-template still shows the security editor to every store developer; a
    developer who does not own the module gets an error when saving.

Added

  • Security updates feed. /contents/modules-repository.securityUpdates.json lists the security
    advisories published by the security team and the module versions their owners flag as containing
    security fixes, so that Jahia instances can warn their administrators. See the README.

    • New content type Security advisory (jnt:forgeSecurityAdvisory), created in the
      contents/security-advisories folder by store or site administrators. An advisory is listed
      once it is published in Jahia. Edits are listed when the advisory is published again. Unpublish it
      to withdraw it. Mark a draft Work in progress to keep it out: Jahia does not publish it, not even
      with the whole folder or site.
    • The store-administrator role gets Jahia's publish permission, so that store administrators
      can publish the advisories they write. New installations get it from the module's roles. On an
      existing installation, the module adds it to /roles/store-administrator the first time this
      version starts and logs Added the publish permission to role store-administrator. If it logs
      Could not add the publish permission to role store-administrator instead, add publish to the
      role by hand.
    • Store developers cannot create, change or delete advisories, in the edit or the live workspace:
      the module denies the store-developer role on the advisories folder to each user and group
      that holds it on the site, and keeps this up to date. Store developers keep their write access
      elsewhere in the site. An advisory written directly in live is ignored.
    • Optional Introduced in property on advisories (introducedIn): the first version of a
      component that has the problem, written like fixedIn ([groupId:]component@version), one
      value per component listed in fixedIn. The feed adds it to that component's fix as
      introducedVersion, so clients stop reporting the versions below it. Without it, every version
      below a fixed version counts as affected. The field is optional (schemaVersion stays 1).
      jContent refuses a malformed value. A value that names a component not in fixedIn or gives
      another groupId than fixedIn, and every value of a component that has more than one, are
      ignored: that component has no introducedVersion, and the module logs a warning with the
      advisory path and the reason. Unlike an invalid fixedIn, an invalid introducedIn never stops
      the feed.
    • The version in fixedIn and introducedIn follows the security-updates client rule (a number, then
      optionally ., -, _ or + and a letter or digit; at most 64 characters, 9 digits per leading
      number): jContent refuses 3a or 3-, and the feed treats such a value as malformed.
    • New optional properties on module versions: securityFix, securitySeverity,
      securityReferences and securityNote.
    • moduleList.json is unchanged.

    What to do: deploy jahia-store-template 5.1.0 or later, which creates the
    security-advisories folder in new store sites. In an existing store site, create a content
    folder named security-advisories under contents before adding the first advisory, and publish
    it. The module locks the folder as soon as it is created, and again at each module start and each
    role change.

Fixed

  • The SEC-366 migration now removes the stale grant from j:permissionNames, the list Jahia
    reads. The startup migration added in 5.1.2 removed jcr:modifyAccessControl_live only from the
    role's j:permissions references. Jahia reads a role's j:permissionNames first and uses
    j:permissions only when j:permissionNames is absent, and a role imported from roles.xml has
    j:permissionNames: on an installation where the 5.1.2 roles.xml import did not run (a
    redeployed snapshot, a failed import, a role changed after the import), the migration found nothing
    and store-developer kept its live ACL authority. The migration now removes the permission from
    j:permissionNames (and from j:permissions when present), flushes Jahia's role-privilege caches,
    and runs at each module start. It logs
    SEC-366: removed jcr:modifyAccessControl_live from role store-developer when it removed something.

    Who is impacted: installations that upgraded to 5.1.2 without the roles.xml import running.
    A normal upgrade imports the roles of the new version and was already fixed.

    What to do: nothing. If the module logs SEC-366: could not remove ..., remove
    jcr:modifyAccessControl_live from /roles/store-developer by hand.

Full Changelog: 5_1_2...5_2_0

Nécessite Jahia 8.2.2.1Publié le 2026-11-25

Upgrade notes

  • Security. This release fixes two privilege issues on the store-developer role:
    • SEC-366 / GHSA-f882-3xwv-3439: the role could rewrite the site's live ACL. On startup, the module removes jcr:modifyAccessControl_live from store-developer and logs SEC-366: removed ... from role store-developer. If it logs SEC-366: could not remove ... instead, the installation is still exposed: remove that permission from /roles/store-developer by hand.
    • SEC-381: an upload now grants owner only on the nodes it creates. See CHANGELOG.md.
  • Deploy with jahia-store-template 5.0.6. It shows the new upload-based "Released" date and hides sign-in for public-edge (CDN-fronted) visitors.

What's Changed

  • test: lock moduleList.json field contract (#55 regression guard) by @fbourasse in #64
  • chore: add cypress test for unpublished module visibility by @goonerish in #66
  • fix: store-developer could rewrite the site's live ACL (GHSA-f882-3xwv-3439 / SEC-366) by @fbourasse in #80
  • test: cover cross-user fragment cache identity (SEC-375 / GHSA-g6wp-ghxm-mx76) by @fbourasse in #82
  • test(e2e): cover the module dependency lists by @goonerish in #86
  • feat(forge): date releases by upload time, not last edit (uploadDate) by @goonerish in #87
  • SUPPORT-687: serve anonymous, read-only use to the public edge by @fbourasse in #89
  • fix: record the upload's owner grant only for the nodes it created by @delallioui in #83
  • test: align the STORE_TEMPLATE_VERSION default in .env.example with 5.0.6-SNAPSHOT by @fbourasse in #90

New Contributors

Full Changelog: 5_1_1...5_1_2

Nécessite Jahia 8.2.2.1Publié le 2026-09-23

Hotfix for a 5.1.0 regression that broke module-list consumers.

5.1.0 (via SECURITY-571 #55) dropped the path (top-level + per-entry) and
per-entry jcrprimarytype fields from the anonymous moduleList.json feed. Jahia
core's ForgeService — the app-store client that refreshes available modules —
requires those fields, so consuming instances failed with:

[ForgeService] unable to parse JSON return string for  https://store.jahia.com/en/sites/store/contents/modules-repository.moduleList.json

 

Fix: the feed's field set is restored to the 5.0.0 contract (path +
jcrprimarytype are back and documented in-code as required). All other 5.1.0
security hardening (#54, #56, #57, #58, #28, #61) is unchanged.

📥 Install

Download jahia-store-5.1.1.jar below and deploy it to store.jahia.com
(Administration → Modules, or the karaf/deploy / provisioning path), replacing
5.1.0. Consuming instances will then refresh their module list normally.

Full changelog: 5_1_0...5_1_1

Nécessite Jahia 8.2.2.1Publié le 2026-09-23

Security-hardening release rolling up the full SECURITY-571 internal blind-audit
remediation (the intermediate 5.0.1 was never published). No functional/API
changes to the storefront or authoring UI — existing content and integrations are
unaffected. Pairs with jahia-store-template 5.0.1.

🔒 Security

Remediation of the 2026-07 blind audit and its fix-verification follow-up:

  • Draft package pages no longer exposed to anonymous visitors (#54) — the live
    publish gate now applies to the shared jmix:forgeElement mixin, so unpublished
    jnt:forgePackage detail pages are gated exactly like modules. Backed by a
    defense-in-depth check in the storefront detail view (store-template).
  • Server-side re-validation of uploaded media, scoped by node structure
    (#28, hardened by #61) — ForgeMediaMimeListener sniffs the real magic bytes of
    any jnt:resource written under a forge element and removes a script-capable
    file (a declared SVG/HTML/XML mime, or bytes that sniff as markup) anywhere in
    the module subtree — not just icon/screenshots. Media folders additionally
    require a genuine raster. Legitimate binaries (the module artifact) are untouched.
  • Log-injection hardening (#56, #58) — attacker-controllable manifest fields
    (CreateEntryFromJar) and request parameters (MavenProxy) are sanitized before
    logging, preventing forged log lines (CWE-117).
  • Reduced information disclosure in the anonymous feed (#55) — the public
    moduleList.json no longer emits absolute JCR paths or node primary types; a
    stable opaque id is kept for consumers.
  • Documented MavenProxy deployment invariant (#57) — operator guidance against
    a confused-deputy exposure on misconfigured public stores.
Nécessite Jahia 8.2.2.1Publié le 2026-07-02

5.0.0 is a major release of the Private App Store backend. The module was renamed
from the old Forge / privateappstore artifact to jahia-store, its JSP-based
storefront was removed in favour of the new jahia-store-template JavaScript
module, and its server side was modernized: a single namespaced GraphQL surface,
per-site settings stored as file-backed OSGi configuration, and a hardened, well-tested
upload/proxy/permission stack. Relicensed to Apache 2.0.

Pairs with: jahia-store-template 5.0.0 (the storefront/editor UI). Backed by a
Sonatype Nexus (or any hosted Maven release repo) for module artifacts.


Highlights

  • Renamed to jahia-store (artifact id and OSGi bundle).
  • Storefront extracted to the jahia-store-template JS module — the legacy JSP
    storefront and its dead Java were removed; this module is now backend-only
    (GraphQL, Actions, feeds, Maven proxy, settings).
  • One namespaced GraphQL surface — all store operations live under a single
    forge field instead of polluting the root Query/Mutation.
  • Settings survive restart — per-site configuration is now a file-backed OSGi
    factory configuration served by a ManagedServiceFactory, replacing the old JCR
    mixin and the programmatic ConfigurationAdmin instances that were lost on restart.
  • Security & permissions hardened across upload, Maven proxy, role management and
    feeds, with ~98 JUnit tests, a green SonarQube gate, and CodeQL remediation.

GraphQL

  • All store operations are grouped under a single hierarchical namespace: Query.forge
    returns a ForgeQuery container and Mutation.forge returns a ForgeMutation
    container, with operations as nested fields — e.g.
    forge { settings, categorySettings, manageRolesSettings, searchPrincipals } and
    forge { updateSettings, setRootCategory, addCategory, updateCategoryTitles, deleteCategory, grantRole, revokeRole }.
  • This removes the flat root-level fields that previously collided with other modules
    (the cross-bundle "Duplicate field" schema failure) and were undiscoverable.
  • The /modules/graphql endpoint stays permission-gated; write features with a Java
    side run as Jahia Actions (CSRF-guarded over XMLHttpRequest), not GraphQL.

Settings & configuration

  • Per-site settings — Nexus connection (url/id/user/password base64 +
    rootCategoryUuid) and storefront branding — are stored as a per-site OSGi factory
    configuration
     <karaf.etc>/org.jahia.modules.forge.forgeSettings-<siteKey>.cfg.
  • ForgeSettingsServiceImpl is a ManagedServiceFactory keyed by siteKey: Felix
    FileInstall delivers each .cfg to it; save()/delete() write/remove the file
    atomically. File-backed, so settings survive restarts and redeploys and can be
    hand-edited in karaf/etc.
  • A shipped, marker-protected default template (…forgeSettings-default.cfg) documents
    the keys and can be copied per site.
  • Branding is exposed to the (anonymous) storefront via an in-process OSGi-service
    bridge; the password is never returned to clients.

Module upload, publish & download

  • Upload (CreateEntryFromJar Action) deploys the module artifact to the configured
    Maven release repository and creates the catalog node, running in the posting
    workspace; accepts JAR/TGZ (WAR upload removed).
  • Publish gate with owner publish toggle and auto-publish of the latest version;
    add / remove version supported.
  • Maven proxy serves downloads from the backing repository at
    /modules/mavenproxy/...; download URLs are generated from coordinates (not stored).
    Anonymous download is allowed where the repository read gate permits.

Roles & administration

  • Site-scoped role management (store-administrator, store-developer, reader) with
    grant/revoke restricted to an allowlist; store administration lives in jContent.

Feeds

  • moduleList.json / RSS feeds retained (the contract consumed by
    jahia-store-template), with output escaping and a coordinate guard that suppresses
    download URLs for unsafe (.. / /) coordinates.

Security & quality

  • Hardening: upload version-coordinate validation, Maven-proxy URL allowlist /
    path-traversal guards, siteKey validation on role and category operations, RSS/feed
    escaping, atomic writes.
  • ~98 JUnit tests (validators, role allowlist, settings factory dispatch, proxy URL
    grammar, upload coordinates), SonarQube quality gate green, CodeQL alerts
    remediated.

Upgrade notes / breaking changes

  • Renamed to jahia-store (artifact id + bundle). Uninstall the previous
    Forge/privateappstore module before deploying 5.0.0
     — running both registers the
    same global GraphQL field / servlet alias and breaks the whole GraphQL schema.
  • Storefront moved to the separate jahia-store-template 5.0.0 module — deploy it
    alongside this one (it also needs the richtext-ckeditor5 module for authoring).
  • Settings moved out of JCR. Per-site settings created by pre-5.0.0 builds (JCR
    jmix:forgeSettings, or the interim programmatic ConfigurationAdmin instances) are
    not auto-migrated — re-save them once in the store administration UI (or drop the
    values into the karaf/etc .cfg).
  • WAR module upload removed — publish modules as JAR or TGZ.
  • Review/rating feature removed (content types left dormant).
  • License changed to Apache 2.0.
  • Bump the module version when shipping changed initial JCR import content (imported
    once per version).

Requirements

  • Jahia 8.2.x (graphql-dxm-provider).
  • jahia-store-template 5.0.0 (storefront) + richtext-ckeditor5 (authoring).
  • A hosted Maven release repository (e.g. Sonatype Nexus) for module artifacts.
Nécessite Jahia 8.2.2.1Publié le 2026-06-25