Skip to main content
Jahia Store
EN

Jahia Store Template

community
Download 5.1.0

Information

Module ID
jahia-store-template
Group ID
org.jahia.modules.javascript
Status
community
Category
Platform
Author
JSG
Developer website
https://github.com/Jahia/store-template
Requires Jahia
8.2.0.0
Released
2026-11-25

The Jahia Store Template - a Jahia 8.2 JavaScript module (server-side React on the javascript-modules-engine) that renders the Private App Store website and its in-site administration (Forge settings, Categories, Roles).

It is the presentation and authoring layer for the jahia-store Java module, which owns the backend logic and the JCR content model.

 

Screenshots

Dependencies

Depended on by

Nothing depends on this module.

Versions

Requires jahia-store 5.2.0, which defines the version security properties, the security advisories
and the published-only rules this version relies on.

Added

  • Security fixes on module versions. Module owners can flag a version as containing security fixes,
    with a severity, references (JSA, CVE or GHSA ids) and a note, from the version editor. The store
    publishes these flags in its security updates feed, which Jahia instances read to warn their
    administrators.
  • Security advisories folder. New store sites get the contents/security-advisories folder, where
    store administrators write the security advisories of the store.

Fixed

  • The version security editor accepts JSA references with a numeric suffix.
  • Accessibility: the accessible name of the language toggle contains its visible text (WCAG 2.5.3).

Security

  • JSTORE-SEC-012: SVG and HTML are never accepted as module media. An SVG or HTML file stored as a
    module icon or screenshot is served from the store's origin, where it can run script when a visitor
    opens it. The icon and screenshot uploads now refuse such a file before uploading it:

    • The file picker offers only PNG, JPEG, GIF and WebP images.
    • A picked file is refused when its extension (.svg, .svgz, .html, .htm, .xhtml, .xht,
      .shtml) or its type names SVG or HTML, or when its first 512 bytes contain <svg, <!doctype html,
      <html or <script. Any other file must be a PNG, JPEG, GIF or WebP image by its content.
    • The error message says that SVG and HTML files are not accepted and lists the accepted formats, in
      English and French. The refused file is cleared, and the file input is marked invalid and linked to
      the message for assistive technologies.
    • The storefront never links an SVG or HTML file as a module icon or screenshot, even one stored
      before this version.

    The jahia-store module applies the same rule on the server and removes such files, in the edit and
    the live workspace.

    What to do: deploy this version with the jahia-store version that has the JSTORE-SEC-012 fix.
    Module owners who use an SVG icon or screenshot must upload a PNG, JPEG, GIF or WebP image instead.

  • The open Dependabot security alerts of the build and test dependencies are resolved.

Full Changelog: 5_0_6...5_1_0

Requires Jahia 8.2.0.0Released 2026-11-25

Deploy with jahia-store (privateappstore) 5.1.2, which provides the uploadDate and public-edge support this version reads.

What's Changed

  • fix(quality): clear the 14 SonarQube maintainability issues failing the gate by @goonerish in #40
  • feat(detail): show the upload date as "Released", not the last edit by @goonerish in #41
  • SUPPORT-687: hide the sign-in trigger for CDN-fronted visitors by @fbourasse in #42

Full Changelog: 5_0_5...5_0_6

Requires Jahia 8.2.0.0Released 2026-09-23

What's Changed

  • fix: key per-user fragments on the viewer

Full Changelog: 5_0_4...5_0_5

Requires Jahia 8.2.0.0Released 2026-09-09

What's Changed

* Added module dependency lists.

Requires Jahia 8.2.0.0Released 2026-09-11

What's Changed

* Hide draft versions from non-owners + sync release versioning
* Update UI to allow upload of both .jar and .tgz archives

Requires Jahia 8.2.0.0Released 2026-07-22

Security-hardening release — the storefront/editor half of the SECURITY-571 audit —
plus dependency updates. No functional or visual changes to the storefront; existing
sites are unaffected. Pairs with jahia-store 5.0.1.

🔒 Security (#29)

  • Client-side magic-byte validation of icon/screenshot uploads (#28) — the editor
    now reads the actual leading bytes of a picked file and confirms a real raster
    signature before uploading, catching a renamed SVG/HTML in the browser. It uploads
    the detected MIME type rather than the spoofable File.type. This pairs with the
    authoritative server-side re-validation shipped in jahia-store 5.0.1.
  • Defense-in-depth publish gate in the detail view (#54) — an unpublished
    module/package never renders its detail (description, FAQ, author, download URLs) to
    a visitor without edit rights, even if the backend render filter is bypassed. Owners
    keep the draft preview.
Requires Jahia 8.2.0.0Released 2026-07-02

5.0.0 is a ground-up rewrite of the Private App Store storefront, delivered as a
Jahia JavaScript module (server-side React on the javascript-modules-engine)
instead of the previous JSP/JAR template set. The module was renamed from
store-template to jahia-store-template and now versions in lock-step with the
jahia-store backend (5.0.0).

Pairs with: jahia-store 5.0.0. The storefront also depends on the deployed
richtext-ckeditor5 module for authoring rich text.


Highlights

  • New architecture — SSR React with client-side "islands" for interactivity,
    built with Vite + Yarn to an OSGi-deployable .tgz. No JSP, no Moonstone, no Apollo
    in the bundle.
  • Reworked storefront — left-hand Status/Categories facet rail, server-side
    pagination & filtering, keyword + advanced search, a Newest/A–Z sort control, and a
    navigation loading bar. Grid is ordered by most-recent release by default.
  • Full in-page authoring — a tabbed module editor with CKEditor 5 rich text,
    icon/screenshot/video media, per-version changelogs, publish toggle, and
    add/remove-version controls, all gated by JCR permissions.
  • WCAG 2.2 Level AAA accessibility pass across the UI it controls.
  • Hardened security — production CSP, server-side render-time XSS sanitization,
    and a clean CodeQL surface.

Storefront

  • Status and Categories facet rail on the left; the header is keyword search only.
  • Server-side pagination and filtering (no client-side over-fetch); results
    ordered by latest release date.
  • Sort control (Newest | A–Z) in the filter rail, persisted in the URL alongside
    the active facets.
  • Advanced/header search matching title, id and description; clearing the search
    re-applies the active filter (keeps facets) via the native search event.
  • Navigation loading bar on filter/search/pagination changes.
  • Header with breadcrumb and account menu; Log out is a real button.
  • Module detail page aligned with store.jahia.com — Information panel,
    How-to-install / FAQ, and a header Download action.
  • Branding (logo, copyright, footer links) read from per-site configuration via an
    in-process OSGi-service bridge, so it renders for anonymous visitors.
  • Typography — self-hosted Nunito Sans variable font; body text tuned to the
    Moonstone gray for AAA contrast.

Authoring & editor

  • Tabbed module editor for owners, inline on the detail page.
  • Rich text via CKEditor 5, loaded at runtime as a federated remote from the
    richtext-ckeditor5 module (not bundled).
  • Media — icon upload, screenshot upload, and video management.
  • Per-version changelog, owner publish toggle, and add / remove version
    controls surfaced in the Versions tab.
  • Category picker as a tag-style chip selector; choosable author display
    (username / email / full name / organisation).
  • Module upload accepts JAR/TGZ only (WAR upload removed).

Accessibility (WCAG 2.2 AAA)

  • Color contrast raised to the AAA enhanced threshold (≥ 7:1) across controls and
    status/error text.
  • Interactive targets meet the ≥ 24px minimum; visible focus states throughout.
  • Correct landmark structure (single top-level <main>; the filter root is a plain
    region, not a nested complementary landmark), role=group/aria-label on control
    groups, and a native <dialog> lightbox with keyboard navigation and reduced-motion
    support.

Security

  • Production Content-Security-Policy with a per-request nonce for the engine
    importmap.
  • XSS — a server-side xss allowlist sanitizer is the primary render-time control;
    DOMPurify-on-save is defense-in-depth for authored rich text.
  • CodeQL alerts remediated (e.g. HTML double-escaping fix); remaining flags
    triaged as false positives.

Tooling & quality

  • Vitest unit-test harness (sanitization, version comparison, card/data
    transforms) plus a clean tsc --noEmit typecheck.
  • End-to-end coverage via the Cypress suite in jahia-store/tests.

Upgrade notes / breaking changes

  • Module renamed store-template → jahia-store-template (artifact id and
    bundle). Uninstall the old template set; deploy the new one. Requires
    jahia-store 5.0.0 and the richtext-ckeditor5 module.
  • Store settings moved out of JCR. Per-site settings (Nexus connection + branding)
    are now a file-backed OSGi factory configuration on the backend. Settings created by
    pre-5.0.0 (JCR jmix:forgeSettings) builds are not migrated — re-save them once
    in the store administration UI after upgrading.
  • Review/rating feature removed.
  • WAR module upload removed — publish modules as JAR or TGZ.
  • Deploying the same -SNAPSHOT over a running instance requires uninstalling the
    previous one first; bump the module version when shipping changed import content.

Dependencies

  • React 19, Vite 8, TypeScript 5
  • @jahia/javascript-modules-engine (SSR + island runtime)
  • richtext-ckeditor5 (federated CKEditor 5 remote, runtime)
Requires Jahia 8.2.0.0Released 2026-06-25