{"id":"GHSA-phrq-v4q2-hmq6","aliases":["CVE-2020-13756"],"title":"Sabberworm PHP CSS Parser Code injection vulnerability in allSelectors()","description":"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","score":9.8,"published":"2022-03-26T00:15:22.000Z","modified":"2025-11-03T22:10:19.619Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"sabberworm/php-css-parser","ranges":[{"events":[{"introduced":"8.3.0"},{"fixed":"8.3.1"}],"type":"ECOSYSTEM"}],"versions":["8.3.0"],"fixed":["8.3.1"]},{"ecosystem":"Packagist","name":"sabberworm/php-css-parser","ranges":[{"events":[{"introduced":"8.2.0"},{"fixed":"8.2.1"}],"type":"ECOSYSTEM"}],"versions":["8.2.0"],"fixed":["8.2.1"]},{"ecosystem":"Packagist","name":"sabberworm/php-css-parser","ranges":[{"events":[{"introduced":"8.1.0"},{"fixed":"8.1.1"}],"type":"ECOSYSTEM"}],"versions":["8.1.0"],"fixed":["8.1.1"]},{"ecosystem":"Packagist","name":"sabberworm/php-css-parser","ranges":[{"events":[{"introduced":"8.0.0"},{"fixed":"8.0.1"}],"type":"ECOSYSTEM"}],"versions":["8.0.0"],"fixed":["8.0.1"]},{"ecosystem":"Packagist","name":"sabberworm/php-css-parser","ranges":[{"events":[{"introduced":"7.0.0"},{"fixed":"7.0.4"}],"type":"ECOSYSTEM"}],"versions":["7.0.0","7.0.1","7.0.2","7.0.3"],"fixed":["7.0.4"]},{"ecosystem":"Packagist","name":"sabberworm/php-css-parser","ranges":[{"events":[{"introduced":"6.0.0"},{"fixed":"6.0.2"}],"type":"ECOSYSTEM"}],"versions":["6.0.0","6.0.1"],"fixed":["6.0.2"]},{"ecosystem":"Packagist","name":"sabberworm/php-css-parser","ranges":[{"events":[{"introduced":"5.2.0"},{"fixed":"5.2.1"}],"type":"ECOSYSTEM"}],"versions":["5.2.0"],"fixed":["5.2.1"]},{"ecosystem":"Packagist","name":"sabberworm/php-css-parser","ranges":[{"events":[{"introduced":"5.1.0"},{"fixed":"5.1.3"}],"type":"ECOSYSTEM"}],"versions":["5.1.0","5.1.1","5.1.2"],"fixed":["5.1.3"]},{"ecosystem":"Packagist","name":"sabberworm/php-css-parser","ranges":[{"events":[{"introduced":"5.0.0"},{"fixed":"5.0.9"}],"type":"ECOSYSTEM"}],"versions":["5.0.0","5.0.1","5.0.2","5.0.3","5.0.4","5.0.5","5.0.6","5.0.7","5.0.8"],"fixed":["5.0.9"]},{"ecosystem":"Packagist","name":"sabberworm/php-css-parser","ranges":[{"events":[{"introduced":"4.0.0"},{"fixed":"4.0.1"}],"type":"ECOSYSTEM"}],"versions":["4.0.0"],"fixed":["4.0.1"]},{"ecosystem":"Packagist","name":"sabberworm/php-css-parser","ranges":[{"events":[{"introduced":"3.0.0"},{"fixed":"3.0.1"}],"type":"ECOSYSTEM"}],"versions":["3.0.0"],"fixed":["3.0.1"]},{"ecosystem":"Packagist","name":"sabberworm/php-css-parser","ranges":[{"events":[{"introduced":"2.0.0"},{"fixed":"2.0.1"}],"type":"ECOSYSTEM"}],"versions":["2.0.0"],"fixed":["2.0.1"]},{"ecosystem":"Packagist","name":"sabberworm/php-css-parser","ranges":[{"events":[{"introduced":"1.0.0"},{"fixed":"1.0.1"}],"type":"ECOSYSTEM"}],"versions":["1.0.0"],"fixed":["1.0.1"]}],"references":["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"],"sources":[{"name":"OSV","id":"GHSA-phrq-v4q2-hmq6","modified":"2025-11-03T22:10:19.619337Z","url":"https://osv.dev/vulnerability/GHSA-phrq-v4q2-hmq6"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8}]}