CVE-2025-43717: Pear/http request2 Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-w7gh-f2fm-9q8r
CVSS 5.4
CWE-531 CWE-79
Published
Advisory Summary

CVE-2025-43717 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-531: Inclusion of Sensitive Information in Test Code) affecting Pear/http request2 libraries in the Packagist ecosystem. The issue involves pear http_request2 vulnerable to cross-site scripting. Remediation is available by upgrading affected packages to version 2.7.0.

CVE-2025-43717 at a Glance

CVE Identifier CVE-2025-43717
GHSA Identifier GHSA-w7gh-f2fm-9q8r
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-531: Inclusion of Sensitive Information in Test Code
Affected Product Pear/http request2
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2025-43717

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

pear/http_request2 fixed: 2.7.0
Upgrade pear/http_request2 to 2.7.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 pear/http_request2

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-43717, inspect your project dependencies for Pear/http request2:

inspect dependencies for pear/http_request2

Analyze the terminal output to locate any version of Pear/http request2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.7.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-531: Inclusion of Sensitive Information in Test Code, where accessible test applications can pose a variety of security risks. since developers or administrators rarely consider that someone besides themselves would even know about the existence of these applications, it is common for them to contain sensitive information or functions. In Pear/http request2, 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

In PEAR HTTP_Request2 before 2.7.0, multiple files in the tests directory, notably tests/_network/getparameters.php and tests/_network/postparameters.php, reflect any GET or POST parameters, leading to XSS.

CVE-2025-43717 Affected Pear/http request2 Versions

1 component(s)
Fixed Versions:
2.7.0
Product / Package Ecosystem Affected Versions Fixed Version
pear/http_request2
Packagist
< 2.7.0
2.7.0

References

Frequently Asked Questions

What is CVE-2025-43717?
CVE-2025-43717 is a security vulnerability in Pear/http request2 involving PEAR HTTP_Request2 vulnerable to Cross-site Scripting under CWE-531: Inclusion of Sensitive Information in Test Code.
Which Pear/http request2 versions are affected?
Affected versions include releases prior to 2.7.0 across affected packages: pear/http_request2.
What version fixes CVE-2025-43717?
Upgrading to 2.7.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pear/http_request2 affected?
Yes, pear/http_request2 is affected in releases prior to 2.7.0. Upgrade your dependency to 2.7.0 or later.
What is the CVSS score of CVE-2025-43717?
CVE-2025-43717 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2025-43717?
CVE-2025-43717 is classified under CWE-531: Inclusion of Sensitive Information in Test Code (Accessible test applications can pose a variety of security risks. Since developers or administrators rarely consider that someone besides themselves would even know about the existence of these applications, it is common for them to contain sensitive information or functions.).
How can I check Packagist dependencies for CVE-2025-43717?
Run the dependency tree command: 'inspect dependencies for pear/http_request2'. 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-w7gh-f2fm-9q8r",
  "modified" : "2025-04-17T14:07:38Z",
  "published" : "2025-04-17T03:30:30Z",
  "aliases" : [ "CVE-2025-43717" ],
  "summary" : "PEAR HTTP_Request2 vulnerable to Cross-site Scripting",
  "details" : "In PEAR HTTP_Request2 before 2.7.0, multiple files in the tests directory, notably tests/_network/getparameters.php and tests/_network/postparameters.php, reflect any GET or POST parameters, leading to XSS.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "pear/http_request2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.7.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-43717"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pear/HTTP_Request2/commit/07925aa77e441dba0ff0fa973a09802729cb838f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pear/HTTP_Request2/commit/265e05f9e08a28a38a57219516a8e4e2dfdbb147"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pear/HTTP_Request2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pear/HTTP_Request2/blob/b1c61b71128045734d757c4d3d436457ace80ea7/package.xml#L24"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pear/HTTP_Request2/compare/v2.6.0...v2.7.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-531", "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-17T14:07:38Z",
    "nvd_published_at" : "2025-04-17T03:15:16Z"
  }
}