CVE-2024-24807: Sulu/sulu Sulu HTML Injection Vulnerability
LOWCVE-2024-24807 is a LOW sulu html injection vulnerability (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)) affecting Sulu/sulu libraries in the Packagist ecosystem. The issue involves sulu html injection via autocomplete suggestion. Remediation is available by upgrading affected packages to version 2.4.16, 2.5.12.
CVE-2024-24807 at a Glance
How to Fix CVE-2024-24807
To remediate this vulnerability, upgrade all affected Sulu/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.4.16
Upgrade sulu/sulu to 2.5.12
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-2024-24807, inspect your project dependencies for Sulu/sulu:
inspect dependencies for sulu/sulu
Analyze the terminal output to locate any version of Sulu/sulu in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4.16), 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-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages. In Sulu/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-2024-24807 Affected Sulu/sulu Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sulu/sulu
|
Packagist |
≥ 2.0.0
< 2.4.16
|
2.4.16
|
|
sulu/sulu
|
Packagist |
≥ 2.5.0
< 2.5.12
|
2.5.12
|
References
Frequently Asked Questions
What is CVE-2024-24807?
Which Sulu/sulu versions are affected?
What version fixes CVE-2024-24807?
Is sulu/sulu affected?
What CWE is associated with CVE-2024-24807?
How can I check Packagist dependencies for CVE-2024-24807?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gfrh-gwqc-63cv",
"modified" : "2024-02-05T20:24:18Z",
"published" : "2024-02-05T20:24:18Z",
"aliases" : [ "CVE-2024-24807" ],
"summary" : "Sulu HTML Injection via Autocomplete Suggestion",
"details" : "### Impact\n\nIt is an issue when input HTML into the Tag name. The HTML is execute when the tag name is listed in the auto complete form.\nOnly admin users are affected and only admin users can create tags.\n\n### Patches\n\n_Has the problem been patched? What versions should users upgrade to?_\n\nThe problem is patched with Version 2.4.16 and 2.5.12.\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nCreate a custom mutation observer\n\n### References\n_Are there any links users can visit to find out more?_\n\nCurrently not.\n\n### For more information\n\n_If you have any questions or comments about this advisory:_\n\n - Open an issue in [sulu/sulu repository](https://github.com/sulu/sulu/issues)\n - Email us at [security@sulu.io](mailto:security@sulu.io)\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "sulu/sulu"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.4.16"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "sulu/sulu"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.5.0"
}, {
"fixed" : "2.5.12"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/sulu/sulu/security/advisories/GHSA-gfrh-gwqc-63cv"
}, {
"type" : "WEB",
"url" : "https://github.com/sulu/sulu/commit/570c78124ae97cb02469141b86ac69d9fb2cb147"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/sulu/sulu"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79", "CWE-80" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-05T20:24:18Z",
"nvd_published_at" : null
}
}