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
| Package | Affected | Fix |
|---|---|---|
| sabberworm/php-css-parser | introduced 8.3.0, fixed 8.3.1 | The export has no generic command for this ecosystem. |
| sabberworm/php-css-parser | introduced 8.2.0, fixed 8.2.1 | The export has no generic command for this ecosystem. |
| sabberworm/php-css-parser | introduced 8.1.0, fixed 8.1.1 | The export has no generic command for this ecosystem. |
| sabberworm/php-css-parser | introduced 8.0.0, fixed 8.0.1 | The export has no generic command for this ecosystem. |
| sabberworm/php-css-parser | introduced 7.0.0, fixed 7.0.4 | The export has no generic command for this ecosystem. |
| sabberworm/php-css-parser | introduced 6.0.0, fixed 6.0.2 | The export has no generic command for this ecosystem. |
| sabberworm/php-css-parser | introduced 5.2.0, fixed 5.2.1 | The export has no generic command for this ecosystem. |
| sabberworm/php-css-parser | introduced 5.1.0, fixed 5.1.3 | The export has no generic command for this ecosystem. |
| sabberworm/php-css-parser | introduced 5.0.0, fixed 5.0.9 | The export has no generic command for this ecosystem. |
| sabberworm/php-css-parser | introduced 4.0.0, fixed 4.0.1 | The export has no generic command for this ecosystem. |
| sabberworm/php-css-parser | introduced 3.0.0, fixed 3.0.1 | The export has no generic command for this ecosystem. |
| sabberworm/php-css-parser | introduced 2.0.0, fixed 2.0.1 | The export has no generic command for this ecosystem. |
| sabberworm/php-css-parser | introduced 1.0.0, fixed 1.0.1 | 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
Links
- https://nvd.nist.gov/vuln/detail/CVE-2020-13756
- https://github.com/sabberworm/PHP-CSS-Parser/commit/2ebf59e8bfbf6cfc1653a5f0ed743b95062c62a4
- https://github.com/FriendsOfPHP/security-advisories/blob/master/sabberworm/php-css-parser/CVE-2020-13756.yaml
- https://github.com/sabberworm/PHP-CSS-Parser/releases/tag/8.3.1
- https://lists.debian.org/debian-lts-announce/2025/10/msg00013.html
- https://packetstormsecurity.com/files/cve/CVE-2020-13756
- http://packetstormsecurity.com/files/157923/Sabberworm-PHP-CSS-Code-Injection.html
- http://seclists.org/fulldisclosure/2020/Jun/7
Source
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0