{
  "schema_version": "1.4.0",
  "id": "GHSA-vwfx-hh3w-fj99",
  "modified": "2021-03-31T17:35:42Z",
  "published": "2021-04-06T17:24:14Z",
  "aliases": [
    "CVE-2021-21418"
  ],
  "summary": "Potential XSS injection in the newsletter conditions field",
  "details": "### 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",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Packagist",
        "name": "prestashop/ps_emailsubscription"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.6.1"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/PrestaShop/ps_emailsubscription/security/advisories/GHSA-vwfx-hh3w-fj99"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-21418"
    },
    {
      "type": "WEB",
      "url": "https://github.com/PrestaShop/ps_emailsubscription/commit/664ffb225e2afb4a32640bbedad667dc6e660b70"
    },
    {
      "type": "WEB",
      "url": "https://github.com/PrestaShop/ps_emailsubscription/releases/tag/v2.6.1"
    },
    {
      "type": "WEB",
      "url": "https://packagist.org/packages/prestashop/ps_emailsubscription"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2021-03-31T17:35:42Z",
    "nvd_published_at": "2021-03-31T18:15:00Z"
  }
}