Advisory record · GHSA-phrq-v4q2-hmq6

Sabberworm PHP CSS Parser Code injection vulnerability in allSelectors()

CVSS 9.8 CriticalCriticalEPSS 0.50 · 98th percentile

Critical, because:

  • CVSS score 9.8: 9.0 or more.
  • CVSS score 9.8 (7.0 or more) and EPSS 0.50 (0.1 or more): a high score and a real chance of exploitation in the next 30 days.

How we decide what’s critical

Published by the GitHub Advisory Database at 26 Mar 2022, 00:15 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
sabberworm/php-css-parserPackagist>=8.3.0, <8.3.1 || >=8.2.0, <8.2.1 || >=8.1.0, <8.1.1 || >=8.0.0, <8.0.1 || >=7.0.0, <7.0.4 || >=6.0.0, <6.0.2 || >=5.2.0, <5.2.1 || >=5.1.0, <5.1.3 || >=5.0.0, <5.0.9 || >=4.0.0, <4.0.1 || >=3.0.0, <3.0.1 || >=2.0.0, <2.0.1 || >=1.0.0, <1.0.18.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
Identifiers
GHSA-phrq-v4q2-hmq6 · CVE-2020-13756 · PKSA-2b5y-mhcw-mt5g
Weakness (CWE)
CWE-20 · CWE-94
Published
26 Mar 2022
Updated
3 Nov 2025

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Sabberworm PHP CSS Parser (sabberworm/php-css-parser) versions before 8.3.1, along with the other listed fixed branches, is affected. The description says the library calls eval on uncontrolled data in allSelectors() or getSelectorsBySpecificity(), so an attacker who can supply CSS input to these functions could possibly achieve remote code execution. Upgrade to the fixed version for your branch, such as 8.3.1, 8.2.1, or 5.0.9; the source gives no workaround.

Written 3 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
9.8 Critical 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS 0.50, the 98th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:26 UTC First seen by agentprime
  2. 31 Oct 2026, 14:26 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.