{"id":"CVE-2021-21418","aliases":["CVE-2021-21418","GHSA-vwfx-hh3w-fj99"],"related":[],"kind":"vulnerability","state":"published","title":"Potential XSS injection in the newsletter conditions field","summary":"ps_emailsubscription is a newsletter subscription module for the PrestaShop platform. An employee can inject javascript in the newsletter condition field that will then be executed on the front office The issue has been fixed in 2.6.1","summarySource":"cvelist","descriptions":[{"lang":"en","text":"ps_emailsubscription is a newsletter subscription module for the PrestaShop platform. An employee can inject javascript in the newsletter condition field that will then be executed on the front office The issue has been fixed in 2.6.1","source":"cvelist"},{"lang":"en","text":"### Impact\nAn employee can inject javascript in the newsletter condition field that will then be executed on the front office\n\n### Patches\nThe issue has been fixed in 2.6.1","format":"markdown","source":"ghsa"},{"lang":"es","text":"ps_emailsubscription es un módulo de suscripción al boletín para la plataforma PrestaShop.&#xa0;Un empleado puede inyectar javascript en el campo de condición del boletín que luego se ejecutará en la oficina principal. El problema se ha solucionado en la versión 2.6.1.","source":"nvd"}],"published":"2021-03-31T17:35:15.000Z","modified":"2026-07-08T06:27:33.161Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","score":3.5,"rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 2.6.1","status":"affected"}],"vendor":"PrestaShop","product":"ps_emailsubscription","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.6.1"}],"ecosystem":"Packagist","package":"prestashop/ps_emailsubscription","purl":"pkg:composer/prestashop/ps_emailsubscription","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.6.0","fixed":"2.6.1"}],"vendor":"prestashop","product":"ps_emailsubscription","cpe":"cpe:2.3:a:prestashop:ps_emailsubscription:*:*:*:*:*:prestashop:*:*","source":"nvd"}],"references":[{"url":"https://github.com/PrestaShop/ps_emailsubscription/security/advisories/GHSA-vwfx-hh3w-fj99","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/PrestaShop/ps_emailsubscription/commit/664ffb225e2afb4a32640bbedad667dc6e660b70","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/PrestaShop/ps_emailsubscription/releases/tag/v2.6.1","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://packagist.org/packages/prestashop/ps_emailsubscription","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21418","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21418","url":"https://www.cve.org/CVERecord?id=CVE-2021-21418","licence":"CVE Terms of Use","modified":"2024-08-03T18:09:16.081Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vwfx-hh3w-fj99","url":"https://github.com/advisories/GHSA-vwfx-hh3w-fj99","licence":"CC-BY-4.0","modified":"2026-07-08T06:27:33.161Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21418","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21418","licence":"Public domain","modified":"2026-06-17T03:35:32.217Z"}],"updatedAt":"2026-11-25T22:58:00.524Z","epss":{"score":0.00786,"percentile":0.57299,"date":"2026-12-01T12:00:22.000Z"}}