CVE-2026-82396: Sulu Cross-Site Scripting Vulnerability
MODERATECVE-2026-82396 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Sulu libraries in the Packagist ecosystem. The issue involves stored xss via media download inline-disposition override. Remediation is available by upgrading affected packages to version 2.6.25, 3.0.8.
CVE-2026-82396 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2026-82396
To remediate this vulnerability, upgrade all affected Sulu dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade sulu/sulu to 2.6.25
Upgrade sulu/sulu to 3.0.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for sulu/sulu
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-82396, inspect your project dependencies for Sulu:
inspect dependencies for sulu/sulu
Analyze the terminal output to locate any version of Sulu in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.6.25), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Sulu, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-82396 Affected Sulu Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sulu/sulu
|
Packagist |
< 2.6.25
|
2.6.25
|
|
sulu/sulu
|
Packagist |
≥ 3.0.0-alpha1
< 3.0.8
|
3.0.8
|
References
Frequently Asked Questions
What is CVE-2026-82396?
Which Sulu versions are affected?
What version fixes CVE-2026-82396?
Is sulu/sulu affected?
What is the CVSS score of CVE-2026-82396?
What CWE is associated with CVE-2026-82396?
How can I check Packagist dependencies for CVE-2026-82396?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pp4x-ccxq-6r33",
"modified" : "2026-09-02T15:10:19Z",
"published" : "2026-09-02T15:10:19Z",
"aliases" : [ "CVE-2026-82396" ],
"summary" : "Sulu: Stored XSS via media download inline-disposition override",
"details" : "### Impact\n\nStored Cross Site Scripting (XSS) in the media download endpoint.\n\nThe download route (`/media/{id}/download/{slug}` and its admin variant) accepts the query parameter `?inline=1`. When it is present, the response is sent with the header `Content-Disposition: inline` for any MIME type, which overrides the disposition rules the server would otherwise apply. By default, HTML and other scriptable uploads are not blocked, the file is served on the application origin with its stored `Content-Type`, and no `X-Content-Type-Options` or `Content-Security-Policy` header is sent. Because of this, an attacker can upload an HTML file and build a link that runs their own JavaScript in the context of the Sulu origin.\n\nEvery installation where users who are not fully trusted can upload media is affected. This includes editors who hold the media add permission. Such an editor can store a payload that runs in the authenticated session of anyone who opens the link, including an administrator, which allows theft of the session and credentials and lets the attacker act as the victim.\n\nThe problem is present on the 2.6 and 3.0 branches and goes back to the introduction of the `?inline` override in 2017. It is not the same as CVE-2024-47617, which was a reflected XSS through the `slug` and is already fixed.\n\n### Patches\n\nFixed in **2.6.25** and **3.0.8**. The download route now forces `Content-Disposition: attachment` for MIME types a browser renders as a document (`text/html`, `application/xhtml+xml`, `text/xml`, `application/xml`), even when `?inline=1` is requested. Inline viewing is unchanged for safe types such as PDF and images.\n\n### Workarounds\n\nBlock scriptable uploads by MIME type through `sulu_media.upload.blocked_file_types`. This stops new uploads only, so existing media has to be reviewed separately.\n\n```yaml\nsulu_media:\n upload:\n blocked_file_types: [text/html, application/xhtml+xml, image/svg+xml, text/xml, application/xml, text/javascript, application/javascript]\n```\n\nAt the web server or reverse proxy, force `Content-Disposition: attachment` and add `X-Content-Type-Options: nosniff` and a restrictive `Content-Security-Policy` on the paths `/media/*/download/*` and `/admin/media/*/download/*`.\n\nServe uploaded media from a separate origin that does not share the application cookies.\n\nRestrict the media upload permission to trusted users and keep the default SVG sanitizer enabled.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "sulu/sulu"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.6.25"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.6.24"
}
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "sulu/sulu"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0-alpha1"
}, {
"fixed" : "3.0.8"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/sulu/sulu/security/advisories/GHSA-pp4x-ccxq-6r33"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-82396"
}, {
"type" : "WEB",
"url" : "https://github.com/sulu/sulu/commit/d061094f5b7bb1d5e974544fce30bede9c7adf8e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/sulu/sulu"
}, {
"type" : "WEB",
"url" : "https://github.com/sulu/sulu/releases/tag/2.6.25"
}, {
"type" : "WEB",
"url" : "https://github.com/sulu/sulu/releases/tag/3.0.8"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-02T15:10:19Z",
"nvd_published_at" : "2026-08-31T22:17:22Z"
}
}