2026-07-28 5:0CVE-2026-17528snyk
PUBLISHED5.2CWE-79

Versions of the package nice-select2 before 2.4.1 are vulnerable to Cross-site Scripting (XSS) via the <select> element. An attacker can supply a malicious payload that is rendered directly into the DOM without proper sanitization, causing arbitrary script execution in a victim’s browser when they view or interact with the affected page.

Problem type

Affected products

nice-select2

< 2.4.1 - AFFECTED

References

GitHub Security Advisories

GHSA-v2fq-q39g-3748

Versions of the package nice-select2 before 2.4.1 are vulnerable to Cross-site Scripting (XSS)...

https://github.com/advisories/GHSA-v2fq-q39g-3748

Versions of the package nice-select2 before 2.4.1 are vulnerable to Cross-site Scripting (XSS) via the element. An attacker can supply a malicious payload that is rendered directly into the DOM without proper sanitization, causing arbitrary script execution in a victim’s browser when they view or interact with the affected page.

JSON source

https://cveawg.mitre.org/api/cve/CVE-2026-17528
Click to expand
{
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "cveMetadata": {
    "cveId": "CVE-2026-17528",
    "assignerOrgId": "bae035ff-b466-4ff4-94d0-fc9efd9e1730",
    "assignerShortName": "snyk",
    "dateUpdated": "2026-07-28T05:00:01.620Z",
    "dateReserved": "2026-07-27T08:44:16.847Z",
    "datePublished": "2026-07-28T05:00:01.620Z",
    "state": "PUBLISHED"
  },
  "containers": {
    "cna": {
      "providerMetadata": {
        "orgId": "bae035ff-b466-4ff4-94d0-fc9efd9e1730",
        "shortName": "snyk",
        "dateUpdated": "2026-07-28T05:00:01.620Z"
      },
      "descriptions": [
        {
          "lang": "en",
          "value": "Versions of the package nice-select2 before 2.4.1 are vulnerable to Cross-site Scripting (XSS) via the <select> element. An attacker can supply a malicious payload that is rendered directly into the DOM without proper sanitization, causing arbitrary script execution in a victim’s browser when they view or interact with the affected page."
        }
      ],
      "affected": [
        {
          "vendor": "n/a",
          "product": "nice-select2",
          "versions": [
            {
              "version": "0",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "2.4.1"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "lang": "en",
              "description": "Cross-site Scripting (XSS)",
              "cweId": "CWE-79"
            }
          ]
        }
      ],
      "references": [
        {
          "url": "https://security.snyk.io/vuln/SNYK-JS-NICESELECT2-13638683"
        },
        {
          "url": "https://github.com/bluzky/nice-select2/commit/ea23ff404e186f6e2a64a25c530f93165fd2ad26"
        },
        {
          "url": "https://github.com/bluzky/nice-select2/issues/97"
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "version": "3.1",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
            "attackVector": "NETWORK",
            "attackComplexity": "LOW",
            "privilegesRequired": "NONE",
            "userInteraction": "REQUIRED",
            "scope": "CHANGED",
            "confidentialityImpact": "LOW",
            "integrityImpact": "LOW",
            "availabilityImpact": "NONE",
            "baseScore": 6.1,
            "baseSeverity": "MEDIUM",
            "exploitCodeMaturity": "NOT_DEFINED"
          }
        }
      ],
      "credits": [
        {
          "lang": "en",
          "value": "Oleg Chuiev"
        }
      ]
    }
  }
}