CVE-2017-7251: Pi/pi Cross-Site Scripting Vulnerability
MODERATECVE-2017-7251 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Pi/pi libraries in the Packagist ecosystem. The issue involves pi cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 2.6.0-alpha1.
CVE-2017-7251 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2017-7251
To remediate this vulnerability, upgrade all affected Pi/pi 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 pi/pi to 2.6.0-alpha1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for pi/pi
How to Check if You Are Affected
To determine whether your application is affected by CVE-2017-7251, inspect your project dependencies for Pi/pi:
inspect dependencies for pi/pi
Analyze the terminal output to locate any version of Pi/pi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.6.0-alpha1), 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 Pi/pi, 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-2017-7251 Affected Pi/pi Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pi/pi
|
Packagist |
< 2.6.0-alpha1
|
2.6.0-alpha1
|
References
Frequently Asked Questions
What is CVE-2017-7251?
Which Pi/pi versions are affected?
What version fixes CVE-2017-7251?
Is pi/pi affected?
What is the CVSS score of CVE-2017-7251?
What CWE is associated with CVE-2017-7251?
How can I check Packagist dependencies for CVE-2017-7251?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9v3w-m552-m6ff",
"modified" : "2023-07-07T20:48:37Z",
"published" : "2022-05-13T01:06:56Z",
"aliases" : [ "CVE-2017-7251" ],
"summary" : "Pi Cross-site Scripting vulnerability",
"details" : "A Cross-Site Scripting (XSS) was discovered in pi-engine/pi 2.5.0. The vulnerability exists due to insufficient filtration of user-supplied data (preview) passed to the `pi-develop/www/script/editor/markitup/preview/markdown.php` URL. An attacker could execute arbitrary HTML and script code in a browser in the context of the vulnerable website.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "pi/pi"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.6.0-alpha1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.5.0"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-7251"
}, {
"type" : "WEB",
"url" : "https://github.com/pi-engine/pi/issues/1523"
}, {
"type" : "WEB",
"url" : "https://github.com/pi-engine/pi/commit/557cd05b21b4d7fe422f90adcfa0c6e3bea06153"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pi-engine/pi"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20210124010656/https://www.securityfocus.com/bid/97061"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-07T20:48:37Z",
"nvd_published_at" : "2017-03-23T22:59:00Z"
}
}