GHSA-pxqj-xrv5-qvjf: Phpxmlrpc/phpxmlrpc Cross-Site Scripting Vulnerability

MODERATE
CWE-79
Published
Advisory Summary

GHSA-pxqj-xrv5-qvjf is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Phpxmlrpc/phpxmlrpc libraries in the Packagist ecosystem. The issue involves xml-rpc for php's debugger vulnerable to possible xss attack. Remediation is available by upgrading affected packages to version 4.9.2.

GHSA-pxqj-xrv5-qvjf at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-pxqj-xrv5-qvjf
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 Phpxmlrpc/phpxmlrpc
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-pxqj-xrv5-qvjf

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

phpxmlrpc/phpxmlrpc fixed: 4.9.2
Upgrade phpxmlrpc/phpxmlrpc to 4.9.2
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 phpxmlrpc/phpxmlrpc

How to Check if You Are Affected

To determine whether your application is affected by GHSA-pxqj-xrv5-qvjf, inspect your project dependencies for Phpxmlrpc/phpxmlrpc:

inspect dependencies for phpxmlrpc/phpxmlrpc

Analyze the terminal output to locate any version of Phpxmlrpc/phpxmlrpc in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.9.2), 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 Phpxmlrpc/phpxmlrpc, 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

The bundled xml-rpc debugger is susceptible to XSS attacks. Since the debugger is not designed to be exposed to end users but only to the developers using this library, and in the default configuration it is not exposed to requests from the web, the likelihood of exploitation may be low.

GHSA-pxqj-xrv5-qvjf Affected Phpxmlrpc/phpxmlrpc Versions

1 component(s)
Fixed Versions:
4.9.2
Product / Package Ecosystem Affected Versions Fixed Version
phpxmlrpc/phpxmlrpc
Packagist
< 4.9.2
4.9.2

References

Frequently Asked Questions

What is GHSA-pxqj-xrv5-qvjf?
GHSA-pxqj-xrv5-qvjf is a security vulnerability in Phpxmlrpc/phpxmlrpc involving XML-RPC for PHP's debugger vulnerable to possible XSS attack under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Phpxmlrpc/phpxmlrpc versions are affected?
Affected versions include releases prior to 4.9.2 across affected packages: phpxmlrpc/phpxmlrpc.
What version fixes GHSA-pxqj-xrv5-qvjf?
Upgrading to 4.9.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is phpxmlrpc/phpxmlrpc affected?
Yes, phpxmlrpc/phpxmlrpc is affected in releases prior to 4.9.2. Upgrade your dependency to 4.9.2 or later.
What CWE is associated with GHSA-pxqj-xrv5-qvjf?
GHSA-pxqj-xrv5-qvjf 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 GHSA-pxqj-xrv5-qvjf?
Run the dependency tree command: 'inspect dependencies for phpxmlrpc/phpxmlrpc'. 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-pxqj-xrv5-qvjf",
  "modified" : "2023-01-11T23:51:00Z",
  "published" : "2023-01-11T23:51:00Z",
  "aliases" : [ ],
  "summary" : "XML-RPC for PHP's debugger vulnerable to possible XSS attack",
  "details" : "The bundled xml-rpc debugger is susceptible to XSS attacks.\n\nSince the debugger is not designed to be exposed to end users but only to the developers using this library, and in the default configuration it is not exposed to requests from the web, the likelihood of exploitation may be low.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "phpxmlrpc/phpxmlrpc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.9.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/gggeek/phpxmlrpc/security/advisories/GHSA-pxqj-xrv5-qvjf"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gggeek/phpxmlrpc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gggeek/phpxmlrpc/releases/tag/4.9.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-11T23:51:00Z",
    "nvd_published_at" : null
  }
}