{"id":"GHSA-phrq-v4q2-hmq6","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.","aliases":["CVE-2020-13756"],"modified":"2025-11-03T22:42:04.819611Z","published":"2022-03-26T00:15:22Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2022-03-26T00:15:22Z","nvd_published_at":"2020-06-03T14:15:12Z","cwe_ids":["CWE-20","CWE-94"],"severity":"CRITICAL"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-13756"},{"type":"WEB","url":"https://github.com/sabberworm/PHP-CSS-Parser/commit/2ebf59e8bfbf6cfc1653a5f0ed743b95062c62a4"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/sabberworm/php-css-parser/CVE-2020-13756.yaml"},{"type":"WEB","url":"https://github.com/sabberworm/PHP-CSS-Parser/releases/tag/8.3.1"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00013.html"},{"type":"WEB","url":"https://packetstormsecurity.com/files/cve/CVE-2020-13756"},{"type":"WEB","url":"http://packetstormsecurity.com/files/157923/Sabberworm-PHP-CSS-Code-Injection.html"},{"type":"WEB","url":"http://seclists.org/fulldisclosure/2020/Jun/7"}],"affected":[{"package":{"name":"sabberworm/php-css-parser","ecosystem":"Packagist","purl":"pkg:composer/sabberworm/php-css-parser"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.3.0"},{"fixed":"8.3.1"}]}],"versions":["8.3.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-phrq-v4q2-hmq6/GHSA-phrq-v4q2-hmq6.json"}},{"package":{"name":"sabberworm/php-css-parser","ecosystem":"Packagist","purl":"pkg:composer/sabberworm/php-css-parser"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.2.0"},{"fixed":"8.2.1"}]}],"versions":["8.2.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-phrq-v4q2-hmq6/GHSA-phrq-v4q2-hmq6.json"}},{"package":{"name":"sabberworm/php-css-parser","ecosystem":"Packagist","purl":"pkg:composer/sabberworm/php-css-parser"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.1.0"},{"fixed":"8.1.1"}]}],"versions":["8.1.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-phrq-v4q2-hmq6/GHSA-phrq-v4q2-hmq6.json"}},{"package":{"name":"sabberworm/php-css-parser","ecosystem":"Packagist","purl":"pkg:composer/sabberworm/php-css-parser"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.0.0"},{"fixed":"8.0.1"}]}],"versions":["8.0.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-phrq-v4q2-hmq6/GHSA-phrq-v4q2-hmq6.json"}},{"package":{"name":"sabberworm/php-css-parser","ecosystem":"Packagist","purl":"pkg:composer/sabberworm/php-css-parser"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.0.0"},{"fixed":"7.0.4"}]}],"versions":["7.0.0","7.0.1","7.0.2","7.0.3"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-phrq-v4q2-hmq6/GHSA-phrq-v4q2-hmq6.json"}},{"package":{"name":"sabberworm/php-css-parser","ecosystem":"Packagist","purl":"pkg:composer/sabberworm/php-css-parser"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.0.0"},{"fixed":"6.0.2"}]}],"versions":["6.0.0","6.0.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-phrq-v4q2-hmq6/GHSA-phrq-v4q2-hmq6.json"}},{"package":{"name":"sabberworm/php-css-parser","ecosystem":"Packagist","purl":"pkg:composer/sabberworm/php-css-parser"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.2.0"},{"fixed":"5.2.1"}]}],"versions":["5.2.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-phrq-v4q2-hmq6/GHSA-phrq-v4q2-hmq6.json"}},{"package":{"name":"sabberworm/php-css-parser","ecosystem":"Packagist","purl":"pkg:composer/sabberworm/php-css-parser"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.1.0"},{"fixed":"5.1.3"}]}],"versions":["5.1.0","5.1.1","5.1.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-phrq-v4q2-hmq6/GHSA-phrq-v4q2-hmq6.json"}},{"package":{"name":"sabberworm/php-css-parser","ecosystem":"Packagist","purl":"pkg:composer/sabberworm/php-css-parser"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"fixed":"5.0.9"}]}],"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"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-phrq-v4q2-hmq6/GHSA-phrq-v4q2-hmq6.json"}},{"package":{"name":"sabberworm/php-css-parser","ecosystem":"Packagist","purl":"pkg:composer/sabberworm/php-css-parser"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.0.1"}]}],"versions":["4.0.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-phrq-v4q2-hmq6/GHSA-phrq-v4q2-hmq6.json"}},{"package":{"name":"sabberworm/php-css-parser","ecosystem":"Packagist","purl":"pkg:composer/sabberworm/php-css-parser"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"3.0.1"}]}],"versions":["3.0.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-phrq-v4q2-hmq6/GHSA-phrq-v4q2-hmq6.json"}},{"package":{"name":"sabberworm/php-css-parser","ecosystem":"Packagist","purl":"pkg:composer/sabberworm/php-css-parser"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.0.1"}]}],"versions":["2.0.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-phrq-v4q2-hmq6/GHSA-phrq-v4q2-hmq6.json"}},{"package":{"name":"sabberworm/php-css-parser","ecosystem":"Packagist","purl":"pkg:composer/sabberworm/php-css-parser"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0"},{"fixed":"1.0.1"}]}],"versions":["1.0.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-phrq-v4q2-hmq6/GHSA-phrq-v4q2-hmq6.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}