# CVE-2021-21418: Potential XSS injection in the newsletter conditions field

- Severity: Medium 4.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.79%, higher than 57% of CVEs (2026-12-01)
- Published: 2021-03-31T17:35:15.000Z
- Modified: 2026-07-08T06:27:33.161Z
- Also known as: GHSA-vwfx-hh3w-fj99
- Weaknesses: CWE-79
- Assigned by: GitHub_M

## Description

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

(As written by CVE List.)

## Affected

- PrestaShop ps_emailsubscription: < 2.6.1; from 2.6.0 before 2.6.1
- prestashop/ps_emailsubscription (Packagist): before 2.6.1

## Every score

- GitHub_M: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/PrestaShop/ps_emailsubscription/security/advisories/GHSA-vwfx-hh3w-fj99> (third-party-advisory, web)
- <https://github.com/PrestaShop/ps_emailsubscription/commit/664ffb225e2afb4a32640bbedad667dc6e660b70> (patch, third-party-advisory, web)
- <https://github.com/PrestaShop/ps_emailsubscription/releases/tag/v2.6.1> (release-notes, third-party-advisory, web)
- <https://packagist.org/packages/prestashop/ps_emailsubscription> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21418> (advisory)

## Sources

- CVE List: [CVE-2021-21418](https://www.cve.org/CVERecord?id=CVE-2021-21418), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-vwfx-hh3w-fj99](https://github.com/advisories/GHSA-vwfx-hh3w-fj99), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-21418](https://nvd.nist.gov/vuln/detail/CVE-2021-21418), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21418 · Whole record: https://cve.day/CVE-2021-21418.json · Rebuilt by cve.day 2026-11-25T22:58:00.524Z
