{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-21628","id":"CVE-2024-21628","title":"XSS can be stored in DB from \"add a message form\" in order detail page (FO)","description":"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, ","descriptionLong":"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.","published":"2024-01-02T21:17:14.733Z","updated":"2026-10-28T02:30:28.026151581Z","reserved":"2023-12-29T03:00:44.954Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:L","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:L","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:L","rating":"medium","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["PrestaShop"],"affectedProducts":[{"vendor":"PrestaShop","product":"PrestaShop","defaultStatus":null,"versions":[{"version":"< 8.1.3","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"prestashop/prestashop","purl":"pkg:composer/prestashop/prestashop","ranges":["<8.1.3"],"fixed":["8.1.3"],"advisory":"GHSA-vr7m-r9vm-m4wf"}],"cwes":["CWE-79"],"aliases":["GHSA-vr7m-r9vm-m4wf"],"references":[{"url":"https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-vr7m-r9vm-m4wf","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://github.com/PrestaShop/PrestaShop/commit/c3d78b7e49f5fe49a9d07725c3174d005deaa597","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21628.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21628","tags":["advisory"]},{"url":"https://github.com/PrestaShop/PrestaShop/commit/afc45b93b3cc33be0e571559d2838c6960d98856","tags":["web"]},{"url":"https://github.com/PrestaShop/PrestaShop","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00389,"epssPercentile":0.33699,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-21628","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21628","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-21628","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-vr7m-r9vm-m4wf","ok":true,"note":"GHSA-vr7m-r9vm-m4wf"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-21628","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}