Advisory

GHSA-phrq-v4q2-hmq6

Also known as: CVE-2020-13756

Summary

Sabberworm PHP CSS Parser Code injection vulnerability in allSelectors()

Details

Sabberworm PHP CSS Parser before 8.3.1 calls eval on uncontrolled data, possibly leading to remote code execution if the function allSelectors() or getSelectorsBySpecificity() is called with input from an attacker.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-03-26 00:15 UTC
Modified
2025-11-03 22:10 UTC

Affected packages and fixes

13 affected packages; all Packagist · All systems
PackageAffectedFix
sabberworm/php-css-parserintroduced 8.3.0, fixed 8.3.1The export has no generic command for this ecosystem.
sabberworm/php-css-parserintroduced 8.2.0, fixed 8.2.1The export has no generic command for this ecosystem.
sabberworm/php-css-parserintroduced 8.1.0, fixed 8.1.1The export has no generic command for this ecosystem.
sabberworm/php-css-parserintroduced 8.0.0, fixed 8.0.1The export has no generic command for this ecosystem.
sabberworm/php-css-parserintroduced 7.0.0, fixed 7.0.4The export has no generic command for this ecosystem.
sabberworm/php-css-parserintroduced 6.0.0, fixed 6.0.2The export has no generic command for this ecosystem.
sabberworm/php-css-parserintroduced 5.2.0, fixed 5.2.1The export has no generic command for this ecosystem.
sabberworm/php-css-parserintroduced 5.1.0, fixed 5.1.3The export has no generic command for this ecosystem.
sabberworm/php-css-parserintroduced 5.0.0, fixed 5.0.9The export has no generic command for this ecosystem.
sabberworm/php-css-parserintroduced 4.0.0, fixed 4.0.1The export has no generic command for this ecosystem.
sabberworm/php-css-parserintroduced 3.0.0, fixed 3.0.1The export has no generic command for this ecosystem.
sabberworm/php-css-parserintroduced 2.0.0, fixed 2.0.1The export has no generic command for this ecosystem.
sabberworm/php-css-parserintroduced 1.0.0, fixed 1.0.1The 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