Executive summary
Jahia audited the code of Example Retail Group for Jahia. The audits recorded 40 vulnerabilities, grouped into 18 fiches.
- 40vulnerabilities
- 18fiches
- 14open fiches
- 3fixed fiches
- 1excluded fiche
Vulnerabilities and fiches by severity| Severity | CVSS score | Vulnerabilities | Fiches |
|---|
| Critical | 9.0 to 10.0 | 3 | 3 |
|---|
| High | 7.0 to 8.9 | 5 | 3 |
|---|
| Medium | 4.0 to 6.9 | 26 | 10 |
|---|
| Low | 0.1 to 3.9 | 6 | 2 |
|---|
| Total | | 40 | 18 |
|---|
14 of the 18 fiches are open, 3 are fixed, and 1 is excluded.
A vulnerability counts at the severity of its own CVSS score. A fiche counts at the severity of its highest vulnerability, so a fiche can hold vulnerabilities of a lower severity.
How to read this report
A fiche is the audit record of one or more vulnerabilities that have the same cause. A vulnerability is one place in the code where an attacker can harm the application.
Most fiches record one vulnerability. A fiche groups several vulnerabilities when they meet three conditions:
- The vulnerabilities have the same cause in the code.
- The same type of attacker can use them: an anonymous visitor, an authenticated user, or a privileged user such as an editor.
- One fix removes all of them.
The CVSS score of a fiche is the highest score of its vulnerabilities, and the fiche stays open while at least one of its vulnerabilities is open. The CVSS score is the base score of the Common Vulnerability Scoring System, version 3.1.
- Status
- Meaning
- Open
- The vulnerability has no fix in place.
- Fixed
- The code has a fix for the vulnerability.
- Excluded
- A later check refuted the vulnerability, or showed that an attacker cannot exploit or reach it.
- Evidence
- Meaning
- Confirmed in the code
- An auditor followed the weakness in the source code, and nobody ran an attack.
- Confirmed on a running instance
- A test reproduced the weakness on an instance that runs the audited code.
- Not exploitable
- A check showed that an attacker cannot use the weakness.
A file path is relative to the root of the audited source code, and the number after the colon is the line. When a summary quotes a secret, such as a password or a token, the report replaces the secret with [redacted].
Open fiches in detail
The open fiches are grouped by type. Each entry gives the CVSS score, the type with its CWE identifiers, the affected files and the description of the fiche.
Injection of queries, code or commands (2)
SEC-0029.8Open
Cookie value is deserialized with Java object streams
- Type
- Injection of queries, code or commands · CWE-502
- Severity
- Critical
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Affected files
retail-portal-core/src/main/java/com/exampleretail/portal/filter/PreferencesFilter.java:112- Component
- retail-portal-core: PreferencesFilter
- Evidence
- Confirmed in the code
- Audit
- 2026-11-retail-portal
A render filter reads the visitor preferences from a cookie and rebuilds them with Java object deserialization. The cookie is under the control of the visitor, and the class path of the platform holds classes that make this pattern dangerous.
Recommended remediation
- Store the preferences as JSON with a fixed schema, and parse them with a data binder that does not create arbitrary classes.
- Sign the cookie value, and reject a cookie with a wrong signature.
- Remove the old cookie format after one release.
SEC-0135.3Open4 vulnerabilities
Store locator builds a JCR query from the search terms
- Type
- Injection of queries, code or commands · CWE-943
- Severity
- Medium
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N- Affected files
retail-portal-core/src/main/java/com/exampleretail/portal/stores/StoreLocatorAction.java:51- Component
- retail-portal-core: StoreLocatorAction
- Evidence
- Confirmed in the code
- Audit
- 2026-11-retail-portal
The store locator adds the city name to a JCR-SQL2 query string. A crafted city name changes the query and can return nodes that the page does not show.
Vulnerabilities in this fiche
| # | Vulnerability | CVSS | Evidence | Status |
|---|
| S1 | The city search of the store locator.retail-portal-core/src/main/java/com/exampleretail/portal/stores/StoreLocatorAction.java:51 | 5.3 | Confirmed in the code | Open |
| S2 | The postal code search.retail-portal-core/src/main/java/com/exampleretail/portal/stores/StoreLocatorAction.java:77 | 5.3 | Confirmed in the code | Open |
| S3 | The opening hours filter.retail-portal-core/src/main/java/com/exampleretail/portal/stores/StoreLocatorAction.java:102 | 5.3 | Confirmed in the code | Open |
| S4 | The service filter.retail-portal-core/src/main/java/com/exampleretail/portal/stores/StoreServicesQuery.java:36 | 5.3 | Confirmed in the code | Open |
Recommended remediation
- Use bind variables for every value in the query.
- Restrict the query to the store folder of the site.
- Apply the change to the three other queries of the action.
Access control (2)
SEC-0067.5Open3 vulnerabilities
Unauthenticated GraphQL field returns form submissions
- Type
- Access control · CWE-862
- Severity
- High
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- Affected files
retail-forms/src/main/java/com/exampleretail/forms/graphql/SubmissionsQueryExtension.java:41- Component
- retail-forms: SubmissionsQueryExtension
- Evidence
- Confirmed on a running instance
- Audit
- 2026-11-retail-portal
A GraphQL extension adds a field that lists the submissions of a form. The field runs with a system session and does not check who asks, so an anonymous visitor can read the submissions.
Vulnerabilities in this fiche
| # | Vulnerability | CVSS | Evidence | Status |
|---|
| S1 | The submissions field of a form.retail-forms/src/main/java/com/exampleretail/forms/graphql/SubmissionsQueryExtension.java:41 | 7.5 | Confirmed on a running instance | Open |
| S2 | The submission count field, which also returns the last entries.retail-forms/src/main/java/com/exampleretail/forms/graphql/SubmissionStatsExtension.java:52 | 7.5 | Confirmed in the code | Open |
| S3 | The attachment field of a submission.retail-forms/src/main/java/com/exampleretail/forms/graphql/AttachmentField.java:28 | 7.5 | Confirmed in the code | Open |
Recommended remediation
- Run the field with the session of the current user.
- Require the form editor permission on the form node.
- Apply the same change to the two related fields of the extension.
SEC-0016.5Open4 vulnerabilities
Form export action does not check the reader's permission
- Type
- Access control · CWE-862
- Severity
- Medium
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N- Affected files
retail-forms/src/main/java/com/exampleretail/forms/ExportAction.java:58- Component
- retail-forms: ExportAction
- Evidence
- Confirmed on a running instance
- Audit
- 2026-11-retail-portal
A logged-in user with no editor role can call the export action of any form. The action returns the submissions of that form, which hold personal data. Three other export entry points of the module have the same gap.
Vulnerabilities in this fiche
| # | Vulnerability | CVSS | Evidence | Status |
|---|
| S1 | The submissions export of the contact form.retail-forms/src/main/java/com/exampleretail/forms/ExportAction.java:58 | 6.5 | Confirmed on a running instance | Open |
| S2 | The CSV export of the event registration form.retail-forms/src/main/java/com/exampleretail/forms/EventExportAction.java:44 | 6.5 | Confirmed in the code | Open |
| S3 | The PDF export of the job application form.retail-forms/src/main/java/com/exampleretail/forms/CareersExportAction.java:71 | 6.5 | Confirmed in the code | Open |
| S4 | The scheduled export that a user can start from the form menu.retail-forms/src/main/java/com/exampleretail/forms/ScheduledExportAction.java:39 | 6.5 | Confirmed in the code | Open |
Recommended remediation
- Check the permission of the current user on the form before the export starts.
- Apply the same check in the three other export entry points.
- Add a test that calls each export with a user who has no editor role.
Authentication and sessions (2)
SEC-0077.4Open
Password reset token stays valid for 30 days and is compared in variable time
- Type
- Authentication and sessions · CWE-640
- Severity
- High
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N- Affected files
retail-sso/src/main/java/com/exampleretail/sso/reset/PasswordResetService.java:73- Component
- retail-sso: PasswordResetService
- Evidence
- Confirmed in the code
- Audit
- 2026-11-retail-portal
The reset token of the custom password reset flow is valid for 30 days and can be used more than once. The service compares the token with a method whose duration depends on the content.
Recommended remediation
- Limit the validity of a token to one hour and to one use.
- Compare tokens with a constant-time method.
- Invalidate every open token when the password changes.
SEC-0183.1Open
Session cookie is set without the Secure flag on one redirect
- Type
- Authentication and sessions · CWE-614
- Severity
- Low
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N- Affected files
retail-portal-core/src/main/java/com/exampleretail/portal/filter/HttpsRedirectFilter.java:29- Component
- retail-portal-core: HttpsRedirectFilter
- Evidence
- Confirmed in the code
- Audit
- 2026-11-retail-portal
The filter that sends HTTP visitors to HTTPS sets a new session cookie without the Secure flag. On that one response, the browser can send the cookie over an unencrypted connection.
Recommended remediation
- Set the Secure and HttpOnly flags on every session cookie.
- Enable HTTP Strict Transport Security on the site.
Server-side request forgery and open redirects (2)
SEC-0126.1Open2 vulnerabilities
Login redirect follows any address in the returnTo parameter
- Type
- Server-side request forgery and open redirects · CWE-601
- Severity
- Medium
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N- Affected files
retail-sso/src/main/java/com/exampleretail/sso/LoginRedirectFilter.java:39- Component
- retail-sso: LoginRedirectFilter
- Evidence
- Confirmed on a running instance
- Audit
- 2026-11-retail-portal
After a successful login, the filter sends the user to the address in the returnTo parameter. The filter accepts external addresses, so a link to the real login page can end on another site.
Vulnerabilities in this fiche
| # | Vulnerability | CVSS | Evidence | Status |
|---|
| S1 | The redirect after login.retail-sso/src/main/java/com/exampleretail/sso/LoginRedirectFilter.java:39 | 6.1 | Confirmed on a running instance | Open |
| S2 | The redirect after logout.retail-sso/src/main/java/com/exampleretail/sso/LogoutAction.java:33 | 6.1 | Confirmed in the code | Open |
Recommended remediation
- Accept only relative paths of the same site.
- Reject addresses that start with two slashes or a backslash.
- Apply the same check to the logout redirect.
SEC-0115.0Open2 vulnerabilities
Link preview service fetches any URL that a user gives
- Type
- Server-side request forgery and open redirects · CWE-918
- Severity
- Medium
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N- Affected files
retail-newsletter/src/main/java/com/exampleretail/newsletter/preview/LinkPreviewService.java:58- Component
- retail-newsletter: LinkPreviewService
- Evidence
- Confirmed on a running instance
- Audit
- 2026-11-retail-portal
The newsletter editor builds link previews on the server. The service fetches the URL that the editor gives, including addresses of the internal network.
Vulnerabilities in this fiche
| # | Vulnerability | CVSS | Evidence | Status |
|---|
| S1 | The link preview of the newsletter editor.retail-newsletter/src/main/java/com/exampleretail/newsletter/preview/LinkPreviewService.java:58 | 5.0 | Confirmed on a running instance | Open |
| S2 | The image import of the newsletter editor.retail-newsletter/src/main/java/com/exampleretail/newsletter/ImageImportService.java:47 | 5.0 | Confirmed in the code | Open |
Recommended remediation
- Allow only public HTTP and HTTPS addresses, and resolve the host before the request.
- Block private, loopback and link-local address ranges.
- Set a short timeout and a size limit on the response.
Cross-site scripting and output encoding (1)
SEC-0086.1Open6 vulnerabilities
Search template prints a request parameter without escaping
- Type
- Cross-site scripting and output encoding · CWE-79
- Severity
- Medium
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N- Affected files
retail-search/src/main/resources/retailsearch_results/html/results.jsp:27- Component
- retail-search: results view
- Evidence
- Confirmed on a running instance
- Audit
- 2026-11-retail-portal
The search results view prints the search terms in the page title and in five other places without HTML escaping. A link to the search page can therefore run a script in the browser of the visitor who opens it.
Vulnerabilities in this fiche
| # | Vulnerability | CVSS | Evidence | Status |
|---|
| S1 | The page title of the results page.retail-search/src/main/resources/retailsearch_results/html/results.jsp:27 | 6.1 | Confirmed on a running instance | Open |
| S2 | The heading above the results.retail-search/src/main/resources/retailsearch_results/html/results.jsp:41 | 6.1 | Confirmed in the code | Open |
| S3 | The no-result message.retail-search/src/main/resources/retailsearch_results/html/results.jsp:88 | 6.1 | Confirmed in the code | Open |
| S4 | The pagination links.retail-search/src/main/resources/retailsearch_results/html/pagination.jsp:19 | 6.1 | Confirmed in the code | Open |
| S5 | The sort menu.retail-search/src/main/resources/retailsearch_results/html/sort.jsp:23 | 6.1 | Confirmed in the code | Open |
| S6 | The search box of the header, on every page.retail-search/src/main/resources/retailsearch_box/html/box.jsp:15 | 6.1 | Confirmed on a running instance | Open |
Recommended remediation
- Escape each output with the encoder that matches its context.
- Apply the change to the six places of the view.
- Add a content security policy that blocks inline scripts on the site.
Secrets and credentials (1)
SEC-0106.5Open
Mail provider API key is stored in the module configuration
- Type
- Secrets and credentials · CWE-798
- Severity
- Medium
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N- Affected files
retail-newsletter/src/main/resources/META-INF/configurations/com.exampleretail.newsletter.cfg:4- Component
- retail-newsletter: OSGi configuration
- Evidence
- Confirmed in the code
- Audit
- 2026-11-retail-portal
The newsletter module ships the API key of the mail provider in its default configuration file. Every copy of the module and of its source code holds the key.
Recommended remediation
- Revoke the key at the mail provider.
- Read the key from an environment variable or a secret store at runtime.
- Add a secret scan to the build.
Information exposure (1)
SEC-0173.7Open5 vulnerabilities
Error page shows stack traces with internal paths
- Type
- Information exposure · CWE-209
- Severity
- Low
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N- Affected files
retail-portal-core/src/main/resources/errors/500.jsp:12- Component
- retail-portal-core: error templates
- Evidence
- Confirmed on a running instance
- Audit
- 2026-11-retail-portal
The custom error templates print the stack trace of the exception. The trace shows class names, library versions and server paths that help an attacker plan another attack.
Vulnerabilities in this fiche
| # | Vulnerability | CVSS | Evidence | Status |
|---|
| S1 | The template of the 500 error.retail-portal-core/src/main/resources/errors/500.jsp:12 | 3.7 | Confirmed on a running instance | Open |
| S2 | The template of the 404 error.retail-portal-core/src/main/resources/errors/404.jsp:9 | 3.7 | Confirmed in the code | Open |
| S3 | The template of the 403 error.retail-portal-core/src/main/resources/errors/403.jsp:9 | 3.7 | Confirmed in the code | Open |
| S4 | The JSON error of the search servlet.retail-search/src/main/java/com/exampleretail/search/SearchServlet.java:131 | 3.7 | Confirmed on a running instance | Open |
| S5 | The JSON error of the forms servlet.retail-forms/src/main/java/com/exampleretail/forms/FormsErrorHandler.java:22 | 3.7 | Confirmed in the code | Open |
Recommended remediation
- Show a generic message and an incident number on the error page.
- Write the stack trace to the server log only.
Path traversal and file handling (1)
SEC-0096.5Open2 vulnerabilities
Upload servlet keeps the client file name in the storage path
- Type
- Path traversal and file handling · CWE-22
- Severity
- Medium
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N- Affected files
retail-forms/src/main/java/com/exampleretail/forms/upload/AttachmentServlet.java:95- Component
- retail-forms: AttachmentServlet
- Evidence
- Confirmed on a running instance
- Audit
- 2026-11-retail-portal
The attachment upload of the forms module writes the file to a temporary folder under the name that the browser sends. A name with folder separators writes the file outside the temporary folder.
Vulnerabilities in this fiche
| # | Vulnerability | CVSS | Evidence | Status |
|---|
| S1 | The attachment of a contact message.retail-forms/src/main/java/com/exampleretail/forms/upload/AttachmentServlet.java:95 | 6.5 | Confirmed on a running instance | Open |
| S2 | The CV of a job application.retail-forms/src/main/java/com/exampleretail/forms/upload/CvUploadServlet.java:61 | 6.5 | Confirmed in the code | Open |
Recommended remediation
- Generate the storage name on the server, and keep the original name as metadata only.
- Check that the final path stays inside the temporary folder.
- Apply the same change to the second upload entry point.
Cryptography and transport security (1)
SEC-0039.1Open
Single sign-on callback accepts an assertion without a valid signature
- Type
- Cryptography and transport security · CWE-347
- Severity
- Critical
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N- Affected files
retail-sso/src/main/java/com/exampleretail/sso/SamlCallbackValve.java:87- Component
- retail-sso: SamlCallbackValve
- Evidence
- Confirmed in the code
- Audit
- 2026-11-retail-portal
The authentication valve of the custom SSO module reads the user name from the identity provider response. The valve checks the signature only when the response carries one, so a response without a signature logs the user in.
Recommended remediation
- Reject every response that has no signature from the configured identity provider.
- Validate the audience, the recipient and the validity period of the assertion.
- Replace the custom parsing with the SAML library that the platform provides.
Dependencies and supply chain (1)
SEC-0058.1Open
Third-party text library with a known code execution vulnerability is shipped
- Type
- Dependencies and supply chain · CWE-1395
- Severity
- High
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H- Affected files
retail-portal-core/pom.xml:142- Component
- retail-portal-core: embedded commons-text 1.9
- Evidence
- Confirmed in the code
- Audit
- 2026-11-retail-portal
The module embeds a version of a text library with a public vulnerability in its string interpolation feature. The module passes search terms to this feature in one place, so the vulnerability can be reachable.
Recommended remediation
- Upgrade the library to the fixed version.
- Stop the use of the interpolation feature on visitor input.
- Add a dependency check to the build of each module.