{"id":"GHSA-9v3w-m552-m6ff","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.","aliases":["CVE-2017-7251"],"modified":"2026-09-10T03:49:32.951259773Z","published":"2022-05-13T01:06:56Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2023-07-07T20:48:37Z","nvd_published_at":"2017-03-23T22:59:00Z","cwe_ids":["CWE-79"],"severity":"MODERATE"},"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"}],"affected":[{"package":{"name":"pi/pi","ecosystem":"Packagist","purl":"pkg:composer/pi/pi"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.0-alpha1"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 2.5.0","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-9v3w-m552-m6ff/GHSA-9v3w-m552-m6ff.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}