critical9.8
CVE-2020-13756
Sabberworm PHP CSS Parser Code injection vulnerability in allSelectors()
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| composer | sabberworm/php-css-parser | >= 8.3.0, < 8.3.1 | 8.3.1 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Sabberworm | Php Css Parser | before 8.3.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- http://packetstormsecurity.com/files/157923/Sabberworm-PHP-CSS-Code-Injection.html
- http://seclists.org/fulldisclosure/2020/Jun/7
- https://github.com/sabberworm/PHP-CSS-Parser/commit/2ebf59e8bfbf6cfc1653a5f0ed743b95062c62a4
- https://github.com/sabberworm/PHP-CSS-Parser/releases/tag/8.3.1
- https://lists.debian.org/debian-lts-announce/2025/10/msg00013.html
- https://github.com/advisories/GHSA-phrq-v4q2-hmq6
- https://nvd.nist.gov/vuln/detail/CVE-2020-13756
- https://github.com/FriendsOfPHP/security-advisories/blob/master/sabberworm/php-css-parser/CVE-2020-13756.yaml
- https://packetstormsecurity.com/files/cve/CVE-2020-13756