Advisory

GHSA-hvwx-qh2h-xcfj

Also known as: CVE-2022-23499

Summary

TYPO3 HTML Sanitizer vulnerable to Cross-Site Scripting

Details

Problem
Due to a parsing issue in the upstream package `masterminds/html5`, malicious markup used in a sequence with special HTML CDATA sections cannot be filtered and sanitized. This allows bypassing the cross-site scripting mechanism of `typo3/html-sanitizer`.

Besides that, the upstream package masterminds/html5 provides HTML raw text elements (script, style, noframes, noembed and iframe) as DOMText nodes, which were not processed and sanitized further. None of the mentioned elements were defined in the default builder configuration, that's why only custom behaviors, using one of those tag names, were vulnerable to cross-site scripting.

Solution
Update to typo3/html-sanitizer versions 1.5.0 or 2.1.1 that fix the problem described.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-12-13 16:59 UTC
Modified
2023-11-08 04:08 UTC

Affected packages and fixes

typo3/html-sanitizer

Packagist · All systems

Affected

  • introduced 1.0.0, fixed 1.5.0 (ecosystem)

Fixed versions

1.5.0

Fix

The export has no generic command for this ecosystem.

typo3/html-sanitizer

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.1.1 (ecosystem)

Fixed versions

2.1.1

Fix

The export has no generic command for this ecosystem.

typo3/cms

Packagist · All systems

Affected

  • introduced 10.0.0, fixed 10.4.33 (ecosystem)

Fixed versions

10.4.33

Fix

The export has no generic command for this ecosystem.

typo3/cms

Packagist · All systems

Affected

  • introduced 11.0.0, fixed 11.5.20 (ecosystem)

Fixed versions

11.5.20

Fix

The export has no generic command for this ecosystem.

typo3/cms

Packagist · All systems

Affected

  • introduced 12.0.0, fixed 12.1.1 (ecosystem)

Fixed versions

12.1.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences