Advisory

GHSA-hr3h-x6gq-rqcp

Also known as: CVE-2021-35955

Summary

Cross site scripting via HTML attributes in the back end

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-08-25 14:45 UTC
Modified
2026-07-08 06:28 UTC

Affected packages and fixes

contao/core-bundle

Packagist · All systems

Affected

  • introduced 4.0.0, fixed 4.4.56 (ecosystem)

Fixed versions

4.4.56

Fix

The export has no generic command for this ecosystem.

contao/contao

Packagist · All systems

Affected

  • introduced 4.0.0, fixed 4.4.56 (ecosystem)

Fixed versions

4.4.56

Fix

The export has no generic command for this ecosystem.

contao/contao

Packagist · All systems

Affected

  • introduced 4.5.0, fixed 4.9.18 (ecosystem)

Fixed versions

4.9.18

Fix

The export has no generic command for this ecosystem.

contao/contao

Packagist · All systems

Affected

  • introduced 4.10.0, fixed 4.11.7 (ecosystem)

Fixed versions

4.11.7

Fix

The export has no generic command for this ecosystem.

contao/core-bundle

Packagist · All systems

Affected

  • introduced 4.5.0, fixed 4.9.18 (ecosystem)

Fixed versions

4.9.18

Fix

The export has no generic command for this ecosystem.

contao/core-bundle

Packagist · All systems

Affected

  • introduced 4.10.0, fixed 4.11.7 (ecosystem)

Fixed versions

4.11.7

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