CVE-2025-48883 Chrome PHP is missing encoding in `CssSelector`

Medium 5.3 Published Updated

An attacker can inject malicious scripts via improperly encoded CSS selectors in the Chrome PHP library, potentially executing code in the browser context.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-48883?

CVE-2025-48883 is a medium-severity cross-site scripting vulnerability in chrome-php chrome, published on 30 May 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Chrome PHP allows users to start playing with chrome/chromium in headless mode from PHP. Prior to version 1.14.0, CSS Selector expressions are not properly encoded, which can lead to XSS (cross-site scripting) vulnerabilities. This is patched in v1.14.0. As a workaround, users can apply encoding manually to their selectors if they are unable to upgrade.

Weakness: CWE-79

Which versions are affected by CVE-2025-48883?

2 open source packages ship an affected version, including chrome-php/chrome.

PackageAffectedFixed in
chrome-php/chrome PackagistAll versions1.14.0
chrome-php/chrome PackagistAll versions1.14.0

How do I fix CVE-2025-48883?

Upgrade chrome-php/chrome to 1.14.0 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-48883 being exploited?

There is no known exploitation of CVE-2025-48883 in the wild and no public exploit code.

Sources

Also known as GHSA-3432-fmrf-7vmh.

Is CVE-2025-48883 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free