CVE-2024-24807: Sulu/sulu Sulu HTML Injection Vulnerability

LOW
Advisory Identifier: GHSA-gfrh-gwqc-63cv
CWE-80 CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-24807
GHSA Identifier GHSA-gfrh-gwqc-63cv
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Affected Product Sulu/sulu
Package Ecosystem Packagist
Published Date
Last Updated

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.

sulu/sulu fixed: 2.4.16
Upgrade sulu/sulu to 2.4.16
sulu/sulu fixed: 2.5.12
Upgrade sulu/sulu to 2.5.12
Verify Direct and Transitive Dependencies

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

### Impact It 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. Only admin users are affected and only admin users can create tags. ### Patches _Has the problem been patched? What versions should users upgrade to?_ The problem is patched with Version 2.4.16 and 2.5.12. ### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ Create a custom mutation observer ### References _Are there any links users can visit to find out more?_ Currently not. ### For more information _If you have any questions or comments about this advisory:_ - Open an issue in [sulu/sulu repository](https://github.com/sulu/sulu/issues) - Email us at [security@sulu.io](mailto:security@sulu.io)

CVE-2024-24807 Affected Sulu/sulu Versions

2 component(s)
Fixed Versions:
2.4.162.5.12
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?
CVE-2024-24807 is a security vulnerability in Sulu/sulu involving Sulu HTML Injection via Autocomplete Suggestion under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS).
Which Sulu/sulu versions are affected?
Affected versions include releases prior to 2.4.16, 2.5.12 across affected packages: sulu/sulu.
What version fixes CVE-2024-24807?
Upgrading to 2.4.16, 2.5.12 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sulu/sulu affected?
Yes, sulu/sulu is affected in releases prior to 2.4.16, 2.5.12. Upgrade your dependency to 2.4.16, 2.5.12 or later.
What CWE is associated with CVE-2024-24807?
CVE-2024-24807 is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) (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.).
How can I check Packagist dependencies for CVE-2024-24807?
Run the dependency tree command: 'inspect dependencies for sulu/sulu'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}