6.1medium
Cross-Site Scripting via Rich-Text Content
- Severity
- 6.1medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.73% (higher than 55% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-c5c9-8c6m-727vBIT-TYPO3-2021-32768
Description
TYPO3 is an open source PHP based web content management system released under the GNU GPL. In affected versions failing to properly parse, sanitize and encode malicious rich-text content, the content rendering process in the website frontend is vulnerable to cross-site scripting. Corresponding rendering instructions via TypoScript functionality HTMLparser does not consider all potentially malicious HTML tag & attribute combinations per default. In default scenarios, a valid backend user account is needed to exploit this vulnerability. In case custom plugins used in the website frontend accept and reflect rich-text content submitted by users, no authentication is required. Update to TYPO3 versions 7.6.53 ELTS, 8.7.42 ELTS, 9.5.29, 10.4.19, 11.3.2 that fix the problem described.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| TYPO3 TYPO3.CMS | >= 7.0.0, < 7.6.53, >= 8.0.0, < 8.7.42, >= 9.0.0, < 9.5.29, >= 10.0.0, < 10.4.19, >= 11.0.0, < 11.3.2 | CVE List |
| typo3/cms-core (Packagist) | from 7.0.0 before 7.6.53, from 8.0.0 before 8.7.42, from 10.0.0 before 10.4.19, from 11.0.0 before 11.3.2, from 9.0.0 before 9.5.29 | GitHub Advisory Database |
| typo3/cms (Packagist) | from 10.0.0 before 10.4.19, from 11.0.0 before 11.3.2, from 9.0.0 before 9.5.29, from 8.0.0 before 8.7.42, from 7.0.0 before 7.6.53 | GitHub Advisory Database |
| typo3 typo3 | from 7.0.0 up to 7.6.52, from 8.0.0 up to 8.7.41, from 9.0.0 up to 9.5.28, from 10.0.0 up to 10.4.18, from 11.0.0 up to 11.3.1 | NVD |
| typo3 (Bitnami) | from 7.0.0 before 7.6.52, from 8.0.0 before 8.7.41, from 9.0.0 before 9.5.28, from 10.0.0 before 10.4.18, from 11.0.0 before 11.3.1 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
TYPO3 is an open source PHP based web content management system released under the GNU GPL. In affected versions failing to properly parse, sanitize and encode malicious rich-text content, the content rendering process in the website frontend is vulnerable to cross-site scripting. Corresponding rendering instructions via TypoScript functionality HTMLparser does not consider all potentially malicious HTML tag & attribute combinations per default. In default scenarios, a valid backend user account is needed to exploit this vulnerability. In case custom plugins used in the website frontend accept and reflect rich-text content submitted by users, no authentication is required. Update to TYPO3 versions 7.6.53 ELTS, 8.7.42 ELTS, 9.5.29, 10.4.19, 11.3.2 that fix the problem described.
GitHub Advisory Database
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(5.7)
Problem
Failing to properly parse, sanitize and encode malicious rich-text content, the content rendering process in the website frontend is vulnerable to cross-site scripting. Corresponding rendering instructions via TypoScript functionality HTMLparser do not consider all potentially malicious HTML tag & attribute combinations per default.
In addition, the lack of comprehensive default node configuration for rich-text fields in the backend user interface fosters this malfunction.
In default scenarios, a valid backend user account is needed to exploit this vulnerability. In case custom plugins used in the website frontend accept and reflect rich-text content submitted by users, no authentication is required.
Solution
Update to TYPO3 versions 7.6.53 ELTS, 8.7.42 ELTS, 9.5.29, 10.4.19, 11.3.2 that fix the problem described above.
Custom package typo3/html-sanitizer - based on allow-lists only - takes care of sanitizing potentially malicious markup. The default behavior is based on safe and commonly used markup - however, this can be extended or restricted further in case it is necessary for individual scenarios.
During the frontend rendering process, sanitization is applied to the default TypoScript path lib.parseFunc, which is implicitly used by the Fluid view-helper instruction f:format.html. Rich-text data persisted using the backend user interface is sanitized as well. Implementation details are explained in corresponding ChangeLog documentation.
Credits
Thanks to Benjamin Stiber, Gert-Jan Jansma, Gábor Ács-Kurucz, Alexander Kellner, Richie Lee, Nina Rösch who reported this issue, and to TYPO3 security team member Oliver Hader, as well as TYPO3 contributor Susanne Moog who fixed the issue.
References
NVD (es)
TYPO3 es un sistema de administrador de contenidos web de código abierto basado en PHP y publicado bajo la licencia GNU GPL. En las versiones afectadas que no analizan, sanean y codifican apropiadamente el contenido de texto enriquecido malicioso, el proceso de representación del contenido en el frontend del sitio web es vulnerable a un ataque de tipo cross-site scripting. Las instrucciones de renderización correspondientes por medio de la funcionalidad TypoScript HTMLparser no considera todas las combinaciones de etiquetas y atributos HTML potencialmente maliciosas por defecto. En los escenarios predeterminados, se necesita una cuenta de usuario de backend válida para explotar esta vulnerabilidad. En caso de que los plugins personalizados usados en el frontend del sitio web acepten y reflejen el contenido de texto enriquecido enviado por usuarios, no es requerida una autenticación. Actualizar a versiones de TYPO3 7.6.53 ELTS, 8.7.42 ELTS, 9.5.29, 10.4.19, 11.3.2 que corrigen el problema descrito
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-32768 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-c5c9-8c6m-727v changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-32768 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-TYPO3-2021-32768 changed 2024-03-06 | Apache-2.0 |