Medium severity6.1NVD Advisory· Published Mar 23, 2017· Updated May 13, 2026
CVE-2017-7251
CVE-2017-7251
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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
pi/piPackagist | < 2.6.0-alpha1 | 2.6.0-alpha1 |
Affected products
1Patches
1557cd05b21b4Fix XSS problem https://github.com/pi-engine/pi/issues/1523
1 file changed · +6 −0
www/script/editor/markitup/preview/markdown.php+6 −0 modified@@ -7,7 +7,13 @@ * @license http://pialog.org/license.txt BSD 3-Clause License */ +// Pi boot with no engine bootup: current file is located in www/script/... +$boot = dirname(dirname(dirname(dirname(dirname($_SERVER['SCRIPT_FILENAME']))))) . '/boot.php'; +include $boot; + $content = $_POST['preview']; +$content = Pi::service('security')->filter($content); +$content = _escape($content); if (class_exists('MarkdownDocument')) { $markdown = MarkdownDocument::createFromString($content);
Vulnerability mechanics
Synthesis attempt was rejected by the grounding validator. Re-run pending.
References
6- github.com/pi-engine/pi/issues/1523nvdPatchThird Party AdvisoryWEB
- www.securityfocus.com/bid/97061nvdThird Party AdvisoryVDB Entry
- github.com/advisories/GHSA-9v3w-m552-m6ffghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2017-7251ghsaADVISORY
- github.com/pi-engine/pi/commit/557cd05b21b4d7fe422f90adcfa0c6e3bea06153ghsaWEB
- web.archive.org/web/20210124010656/https://www.securityfocus.com/bid/97061ghsaWEB
News mentions
0No linked articles in our index yet.