Description
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.
Published: 2026-07-28
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises because nice‑select2 renders options supplied through the <select> element directly into the DOM without sanitization. An attacker can inject malicious JavaScript that is executed when a user visits or interacts with a page that uses the affected component. This client‑side code execution can lead to data theft, session hijacking, defacement, or further attacks such as credential phishing or malware delivery, thereby compromising the confidentiality, integrity, and availability of the affected web application.

Affected Systems

The flaw exists in the open‑source JavaScript library nice‑select2, affecting all releases prior to version 2.4.1. Any web application that incorporates this library and populates the select component with user‑controlled or untrusted data is susceptible.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate severity flaw. The EPSS score of less than 1% suggests the probability of exploitation is low at this time, and the issue is not listed in the CISA KEV catalog. Exploitation requires an attacker to supply data that is rendered by the component, which typically means the vulnerability is exploitable in the context of a user interacting with a vulnerable page rather than from a remote network vector. Nevertheless, because the attack triggers client‑side code, the outcome can be severe if the user is running privileged or sensitive sessions.

Generated by OpenCVE AI on August 4, 2026 at 13:04 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade nice‑select2 to version 2.4.1 or later, which removes the unsanitized rendering path.
  • Validate and escape any data that is used to generate option elements so that text content cannot contain executable scripts.
  • Deploy a Content Security Policy that restricts inline script execution and limits the sources of executable code.

Generated by OpenCVE AI on August 4, 2026 at 13:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 04 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
Title Cross‑Site Scripting via Unsanitized <select> Rendering in nice‑select2

Mon, 03 Aug 2026 16:15:00 +0000

Type Values Removed Values Added
First Time appeared Bluzky
Bluzky nice-select2
Vendors & Products Bluzky
Bluzky nice-select2

Sun, 02 Aug 2026 10:15:00 +0000

Type Values Removed Values Added
Title Cross‑Site Scripting via Unsanitized <select> Rendering in nice‑select2

Tue, 28 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 28 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description 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.
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N'}


Subscriptions

Bluzky Nice-select2
cve-icon MITRE

Status: PUBLISHED

Assigner: snyk

Published:

Updated: 2026-07-28T16:05:45.252Z

Reserved: 2026-07-27T08:44:16.847Z

Link: CVE-2026-17528

cve-icon Vulnrichment

Updated: 2026-07-28T16:05:42.245Z

cve-icon NVD

Status : Deferred

Published: 2026-07-28T06:16:41.730

Modified: 2026-07-30T20:11:09.180

Link: CVE-2026-17528

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T13:15:03Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')