CVE-2025-48883: Chrome php/chrome Chrome PHP Is Missing Encoding Vulnerability

MODERATE
Advisory Identifier: GHSA-3432-fmrf-7vmh
CWE-79
Published
Advisory Summary

CVE-2025-48883 is a MODERATE chrome php is missing encoding vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Chrome php/chrome libraries in the Packagist ecosystem. The issue involves chrome php is missing encoding in `cssselector`. Remediation is available by upgrading affected packages to version 1.14.0.

CVE-2025-48883 at a Glance

CVE Identifier CVE-2025-48883
GHSA Identifier GHSA-3432-fmrf-7vmh
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Chrome php/chrome
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2025-48883

To remediate this vulnerability, upgrade all affected Chrome php/chrome dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

chrome-php/chrome fixed: 1.14.0
Upgrade chrome-php/chrome to 1.14.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for chrome-php/chrome

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-48883, inspect your project dependencies for Chrome php/chrome:

inspect dependencies for chrome-php/chrome

Analyze the terminal output to locate any version of Chrome php/chrome in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.14.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Chrome php/chrome, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact CSS Selector expressions are not properly encoded, which can lead to XSS (cross-site scripting) vulnerabilities. ### Patches This is patched in v1.14.0. ### Workarounds Users can apply encoding manually to their selectors, if they are unable to upgrade.

CVE-2025-48883 Affected Chrome php/chrome Versions

1 component(s)
Fixed Versions:
1.14.0
Product / Package Ecosystem Affected Versions Fixed Version
chrome-php/chrome
Packagist
< 1.14.0
1.14.0

References

Frequently Asked Questions

What is CVE-2025-48883?
CVE-2025-48883 is a security vulnerability in Chrome php/chrome involving Chrome PHP is missing encoding in `CssSelector` under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Chrome php/chrome versions are affected?
Affected versions include releases prior to 1.14.0 across affected packages: chrome-php/chrome.
What version fixes CVE-2025-48883?
Upgrading to 1.14.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is chrome-php/chrome affected?
Yes, chrome-php/chrome is affected in releases prior to 1.14.0. Upgrade your dependency to 1.14.0 or later.
What CWE is associated with CVE-2025-48883?
CVE-2025-48883 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Packagist dependencies for CVE-2025-48883?
Run the dependency tree command: 'inspect dependencies for chrome-php/chrome'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3432-fmrf-7vmh",
  "modified" : "2025-05-30T21:40:32Z",
  "published" : "2025-05-28T16:06:03Z",
  "aliases" : [ "CVE-2025-48883" ],
  "summary" : "Chrome PHP is missing encoding in `CssSelector`",
  "details" : "### Impact\n\nCSS Selector expressions are not properly encoded, which can lead to XSS (cross-site scripting) vulnerabilities.\n\n### Patches\n\nThis is patched in v1.14.0.\n\n### Workarounds\n\nUsers can apply encoding manually to their selectors, if they are unable to upgrade.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "chrome-php/chrome"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.14.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/chrome-php/chrome/security/advisories/GHSA-3432-fmrf-7vmh"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-48883"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/chrome-php/chrome/pull/691"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/chrome-php/chrome/commit/34b2b8d1691f4e3940b1e1e95d388fffe81169c8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/chrome-php/chrome"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-28T16:06:03Z",
    "nvd_published_at" : "2025-05-30T19:15:29Z"
  }
}