CVE-2025-43717: Pear/http request2 Cross-Site Scripting Vulnerability
MODERATECVE-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
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).
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.
Upgrade pear/http_request2 to 2.7.0
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
CVE-2025-43717 Affected Pear/http request2 Versions
1 component(s)| 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?
Which Pear/http request2 versions are affected?
What version fixes CVE-2025-43717?
Is pear/http_request2 affected?
What is the CVSS score of CVE-2025-43717?
What CWE is associated with CVE-2025-43717?
How can I check Packagist dependencies for CVE-2025-43717?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}