VDB
Sign up
MEDIUM6.1

GHSA-hvwx-qh2h-xcfj

TYPO3 HTML Sanitizer vulnerable to Cross-Site Scripting

Quick fix

GHSA-hvwx-qh2h-xcfj — typo3/html-sanitizer: upgrade to the fixed version with the command below.

composer require typo3/html-sanitizer:^1.5.0

Details

### Problem Due to a parsing issue in the upstream package [`masterminds/html5`](https://packagist.org/packages/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`](https://packagist.org/packages/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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/typo3/html-sanitizer
Introduced in: 1.0.0Fixed in: 1.5.0
Fixcomposer require typo3/html-sanitizer:^1.5.0
Packagist/typo3/html-sanitizer
Introduced in: 2.0.0Fixed in: 2.1.1
Fixcomposer require typo3/html-sanitizer:^2.1.1
Packagist/typo3/cms
Introduced in: 10.0.0Fixed in: 10.4.33
Fixcomposer require typo3/cms:^10.4.33
Packagist/typo3/cms
Introduced in: 11.0.0Fixed in: 11.5.20
Fixcomposer require typo3/cms:^11.5.20
Packagist/typo3/cms
Introduced in: 12.0.0Fixed in: 12.1.1
Fixcomposer require typo3/cms:^12.1.1

References