Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. sabberworm/php-css-parser
  4. ›
  5. CVE-2020-13756

CVE-2020-13756: Sabberworm PHP CSS Parser Code injection vulnerability in allSelectors()

March 26, 2022 (updated November 3, 2025)

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.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/sabberworm/php-css-parser/CVE-2020-13756.yaml
  • github.com/advisories/GHSA-phrq-v4q2-hmq6
  • github.com/sabberworm/PHP-CSS-Parser/commit/2ebf59e8bfbf6cfc1653a5f0ed743b95062c62a4
  • github.com/sabberworm/PHP-CSS-Parser/releases/tag/8.3.1
  • lists.debian.org/debian-lts-announce/2025/10/msg00013.html
  • nvd.nist.gov/vuln/detail/CVE-2020-13756
  • packetstormsecurity.com/files/cve/CVE-2020-13756

Code Behaviors & Features

Detect and mitigate CVE-2020-13756 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.0.0 before 1.0.1, all versions starting from 2.0.0 before 2.0.1, all versions starting from 3.0.0 before 3.0.1, all versions starting from 4.0.0 before 4.0.1, all versions starting from 5.0.0 before 5.0.9, all versions starting from 5.1.0 before 5.1.3, all versions starting from 5.2.0 before 5.2.1, all versions starting from 6.0.0 before 6.0.2, all versions starting from 7.0.0 before 7.0.4, all versions starting from 8.0.0 before 8.0.1, all versions starting from 8.1.0 before 8.1.1, all versions starting from 8.2.0 before 8.2.1, all versions starting from 8.3.0 before 8.3.1

Fixed versions

  • 8.3.1
  • 8.2.1
  • 8.1.1
  • 8.0.1
  • 7.0.4
  • 6.0.2
  • 5.2.1
  • 5.1.3
  • 5.0.9
  • 4.0.1
  • 3.0.1
  • 2.0.1
  • 1.0.1

Solution

Upgrade to versions 1.0.1, 2.0.1, 3.0.1, 4.0.1, 5.0.9, 5.1.3, 5.2.1, 6.0.2, 7.0.4, 8.0.1, 8.1.1, 8.2.1, 8.3.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/sabberworm/php-css-parser/CVE-2020-13756.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 05 Nov 2025 12:20:32 +0000.