{"id":"CVE-2024-21628","published":"2024-01-02T21:17:14Z","modified":"2024-11-14T19:10:16Z","title":"XSS can be stored in DB from \"add a message form\" in order detail page (FO)","vendor":"PrestaShop","product":"PrestaShop","tier":"tail","description":{"text":"PrestaShop is an open-source e-commerce platform. Prior to version 8.1.3, the isCleanHtml method is not used on this this form, which makes it possible to store a cross-site scripting payload in the database. The impact is low because the HTML is not interpreted in BO, thanks to twig's escape mechanism. In FO, the cross-site scripting attack is effective, but only impacts the customer sending it, or the customer session from which it was sent. This issue affects those who have a module fetching these messages from the DB and displaying it without escaping HTML. Version 8.1.3 contains a patch for this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00389,"percentile":0.33934,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-vr7m-r9vm-m4wf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PrestaShop/PrestaShop/commit/c3d78b7e49f5fe49a9d07725c3174d005deaa597","tags":["x_refsource_MISC"]}],"priority":{"score":10.6,"factors":[{"name":"EPSS percentile","points":6.79},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"prestashop","affectedVersions":[{"vendor":"PrestaShop","product":"PrestaShop","versions":["< 8.1.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-01-16T16:32:28.268211Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"prestashop/prestashop","vulnerableRanges":["<8.1.3"],"patched":["8.1.3"],"from":["GHSA-vr7m-r9vm-m4wf"],"provenance":"source"}],"summary":{"text":"PrestaShop's front-office \"add a message\" form on the order detail page fails to apply the isCleanHtml check before storing input, allowing a cross-site scripting payload to be saved in the database; the issue affects versions prior to 8.1.3. An attacker with a low-privileged customer account needs a victim to interact with the page (user interaction), and the script then runs only in the context of the customer who sent it or their session, with the effect most relevant when a module displays these messages without escaping HTML.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:27Z"},"euvd":{"id":"EUVD-2024-0439","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-prestashop-cve-2023-39530","parents":[{"from":"CVE-2023-39530","to":"CVE-2024-21628","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["classes/CustomerMessage.php"],"commits":["https://github.com/PrestaShop/PrestaShop/commit/6ce750b2367a7309b6bf50166f1873cb86ad57e9","https://github.com/PrestaShop/PrestaShop/commit/c3d78b7e49f5fe49a9d07725c3174d005deaa597","https://github.com/PrestaShop/PrestaShop/commit/afc45b93b3cc33be0e571559d2838c6960d98856"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2023-43663","published":"2023-09-28","fixed":"8.1.2","kev":false},{"cve":"CVE-2023-43664","published":"2023-09-28","fixed":"8.1.2","kev":false,"link":{"from":"CVE-2023-43664","to":"CVE-2024-21628","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:prestashop/prestashop","fromFixed":"8.1.2","toFixed":"8.1.3","daysApart":96}]}},{"cve":"CVE-2024-21627","published":"2024-01-02","fixed":"8.1.3","kev":false},{"cve":"CVE-2024-21628","published":"2024-01-02","fixed":"8.1.3","kev":false},{"cve":"CVE-2024-26129","published":"2024-02-19","fixed":"8.1.4","kev":false},{"cve":"CVE-2024-34716","published":"2024-05-14","fixed":"8.1.6","kev":false},{"cve":"CVE-2024-34717","published":"2024-05-14","fixed":"8.1.6","kev":false}],"package":"Packagist:prestashop/prestashop"}}