CVE-2017-7251 Pi Cross-site Scripting vulnerability
An attacker can execute arbitrary HTML and script code in a browser via insufficient filtration of user-supplied data in the markdown preview feature.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2017-7251?
CVE-2017-7251 is a medium-severity cross-site scripting vulnerability in n/a, published on 23 Mar 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-79
Which versions are affected by CVE-2017-7251?
2 open source packages ship an affected version, including pi/pi. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pi/pi Packagist | All versions | 2.6.0-alpha1 |
pi/pi Packagist | All versions | 2.6.0-alpha1 |
Products include Piengine Pi.
How do I fix CVE-2017-7251?
Upgrade pi/pi to 2.6.0-alpha1 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2017-7251 being exploited?
There is no known exploitation of CVE-2017-7251 in the wild and no public exploit code.
Sources
Also known as GHSA-9v3w-m552-m6ff.