GHSA-gqqf-g5r7-84vf: Typo3/cms core Cross-Site Scripting Vulnerability

MODERATE
CVSS 6.1
Published
Advisory Summary

GHSA-gqqf-g5r7-84vf is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (General Security Weakness) affecting Typo3/cms core libraries in the Packagist ecosystem. The issue involves typo3 html sanitizer bypasses cross-site scripting protection. Remediation is available by upgrading affected packages to version 7.6.58, 8.7.48, 9.5.37, 10.4.32, 11.5.16.

GHSA-gqqf-g5r7-84vf at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-gqqf-g5r7-84vf
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification General Security Weakness
Affected Product Typo3/cms core
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix GHSA-gqqf-g5r7-84vf

To remediate this vulnerability, upgrade all affected Typo3/cms core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

typo3/cms-core fixed: 7.6.58
Upgrade typo3/cms-core to 7.6.58
typo3/cms-core fixed: 8.7.48
Upgrade typo3/cms-core to 8.7.48
typo3/cms-core fixed: 9.5.37
Upgrade typo3/cms-core to 9.5.37
typo3/cms-core fixed: 10.4.32
Upgrade typo3/cms-core to 10.4.32
typo3/cms-core fixed: 11.5.16
Upgrade typo3/cms-core to 11.5.16
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 typo3/cms-core

How to Check if You Are Affected

To determine whether your application is affected by GHSA-gqqf-g5r7-84vf, inspect your project dependencies for Typo3/cms core:

inspect dependencies for typo3/cms-core

Analyze the terminal output to locate any version of Typo3/cms core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.6.58), 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 General Security Weakness. In Typo3/cms core, 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

> ### Meta > * CVSS: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:F/RL:O/RC:C` (5.7) ### Problem Due to a parsing issue in upstream package [`masterminds/html5`](https://packagist.org/packages/masterminds/html5), malicious markup used in a sequence with special HTML comments cannot be filtered and sanitized. This allows to by-pass the cross-site scripting mechanism of [`typo3/html-sanitizer`](https://github.com/TYPO3/html-sanitizer). ### Solution Update to TYPO3 version 7.6.58 ELTS, 8.7.48 ELTS, 9.5.37 ELTS, 10.4.32 or 11.5.16 that fix the problem described above. ### Credits Thanks to David Klein who reported this issue, and to TYPO3 security team member Oliver Hader who fixed the issue. ### References * [TYPO3-CORE-SA-2022-011](https://typo3.org/security/advisory/typo3-core-sa-2022-011) * [GHSA-47m6-46mj-p235](https://github.com/TYPO3/html-sanitizer/security/advisories/GHSA-47m6-46mj-p235)

GHSA-gqqf-g5r7-84vf Affected Typo3/cms core Versions

5 component(s)
Fixed Versions:
7.6.588.7.489.5.3710.4.3211.5.16
Product / Package Ecosystem Affected Versions Fixed Version
typo3/cms-core
Packagist
≥ 7.0.0
< 7.6.58
7.6.58
typo3/cms-core
Packagist
≥ 8.0.0
< 8.7.48
8.7.48
typo3/cms-core
Packagist
≥ 9.0.0
< 9.5.37
9.5.37
typo3/cms-core
Packagist
≥ 10.0.0
< 10.4.32
10.4.32
typo3/cms-core
Packagist
≥ 11.0.0
< 11.5.16
11.5.16

References

Frequently Asked Questions

What is GHSA-gqqf-g5r7-84vf?
GHSA-gqqf-g5r7-84vf is a security vulnerability in Typo3/cms core involving TYPO3 HTML Sanitizer Bypasses Cross-Site Scripting Protection under General Security Weakness.
Which Typo3/cms core versions are affected?
Affected versions include releases prior to 7.6.58, 8.7.48, 9.5.37, 10.4.32, 11.5.16 across affected packages: typo3/cms-core.
What version fixes GHSA-gqqf-g5r7-84vf?
Upgrading to 7.6.58, 8.7.48, 9.5.37, 10.4.32, 11.5.16 (or the latest patched release for your respective branch) resolves the vulnerability.
Is typo3/cms-core affected?
Yes, typo3/cms-core is affected in releases prior to 7.6.58, 8.7.48, 9.5.37, 10.4.32, 11.5.16. Upgrade your dependency to 7.6.58, 8.7.48, 9.5.37, 10.4.32, 11.5.16 or later.
What is the CVSS score of GHSA-gqqf-g5r7-84vf?
GHSA-gqqf-g5r7-84vf has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with GHSA-gqqf-g5r7-84vf?
GHSA-gqqf-g5r7-84vf is classified under General Security Weakness.
How can I check Packagist dependencies for GHSA-gqqf-g5r7-84vf?
Run the dependency tree command: 'inspect dependencies for typo3/cms-core'. 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-gqqf-g5r7-84vf",
  "modified" : "2022-09-15T03:26:51Z",
  "published" : "2022-09-15T03:26:51Z",
  "aliases" : [ ],
  "summary" : "TYPO3 HTML Sanitizer Bypasses Cross-Site Scripting Protection",
  "details" : "> ### Meta\n> * CVSS: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:F/RL:O/RC:C` (5.7)\n\n### Problem\nDue to a parsing issue in upstream package [`masterminds/html5`](https://packagist.org/packages/masterminds/html5), malicious markup used in a sequence with special HTML comments cannot be filtered and sanitized. This allows to by-pass the cross-site scripting mechanism of [`typo3/html-sanitizer`](https://github.com/TYPO3/html-sanitizer).\n\n### Solution\nUpdate to TYPO3 version 7.6.58 ELTS, 8.7.48 ELTS, 9.5.37 ELTS, 10.4.32 or 11.5.16 that fix the problem described above.\n\n### Credits\nThanks to David Klein who reported this issue, and to TYPO3 security team member Oliver Hader who fixed the issue.\n\n### References\n* [TYPO3-CORE-SA-2022-011](https://typo3.org/security/advisory/typo3-core-sa-2022-011)\n* [GHSA-47m6-46mj-p235](https://github.com/TYPO3/html-sanitizer/security/advisories/GHSA-47m6-46mj-p235)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3/cms-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.6.58"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 7.6.57"
    }
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3/cms-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.7.48"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 8.7.47"
    }
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3/cms-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0"
      }, {
        "fixed" : "9.5.37"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 9.5.36"
    }
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3/cms-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.0.0"
      }, {
        "fixed" : "10.4.32"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 10.4.31"
    }
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3/cms-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.0.0"
      }, {
        "fixed" : "11.5.16"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 11.5.15"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/TYPO3/typo3/security/advisories/GHSA-gqqf-g5r7-84vf"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TYPO3/typo3/commit/d4f260570abd934fcf3819370a135bef33d729b7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/TYPO3/typo3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-09-15T03:26:51Z",
    "nvd_published_at" : null
  }
}