GitHub Advisoryadvisory · Packagist

GHSA-hr3h-x6gq-rqcp Cross site scripting via HTML attributes in the back end

MEDIUM Published 2021-08-25 Modified 2025-04-17 Official page ↗
Aliases
CVE-2021-35955
Ecosystem
Packagist
Packages
contao/core-bundle, contao/contao
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L
Weaknesses
CWE-79
Reviewed
2021-08-24

Affected packages

• Packagist contao/core-bundle: >= 4.0.0, < 4.4.56 → fixed in 4.4.56 • Packagist contao/contao: >= 4.0.0, < 4.4.56 → fixed in 4.4.56 • Packagist contao/contao: >= 4.5.0, < 4.9.18 → fixed in 4.9.18 • Packagist contao/contao: >= 4.10.0, < 4.11.7 → fixed in 4.11.7 • Packagist contao/core-bundle: >= 4.5.0, < 4.9.18 → fixed in 4.9.18 • Packagist contao/core-bundle: >= 4.10.0, < 4.11.7 → fixed in 4.11.7

Description

Impact It is possible for untrusted users to inject malicious code into HTML attributes in the back end, which will be executed both in the element preview (back end) and on the website (front end). Installations are only affected if there are untrusted back end users who have the rights to modify HTML fields (e.g. TinyMCE). Patches Update to Contao 4.4.56, 4.9.18 or 4.11.7 Workarounds Disable all fields that allow HTML for untrusted back end users or disable the login for these users. References https://contao.org/en/security-advisories/cross-site-scripting-via-html-attributes-in-the-back-end For more information If you have any questions or comments about this advisory, open an issue in contao/contao. Credits Thanks to Mikhail Khramenkov and Moritz Vondano for reporting this security issue.

Related

Alias · CVE (1)

  • CVE-2021-35955 Contao >=4.0.0 allows backend XSS via HTML attributes to an HTML field. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References