CVE-2026-17528
Received Received - Intake

Cross-site Scripting (XSS) in nice-select2 Library

Vulnerability report for CVE-2026-17528, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-28

Last updated on: 2026-07-28

Assigner: Snyk

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-28
Last Modified
2026-07-28
Generated
2026-07-28
AI Q&A
2026-07-28
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
bluzky nice-select2 to 2.4.1 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a Cross-site Scripting (XSS) issue in the nice-select2 package versions before 2.4.1. It occurs because user input from the <select> element is not properly sanitized, allowing malicious scripts to be injected and executed in a victim's browser when they interact with the affected page. The lack of proper escaping of user-provided data enables attackers to bypass security measures and render arbitrary code.

Detection Guidance

To detect this XSS vulnerability in nice-select2 versions before 2.4.1, inspect your web application for usage of the package. Check the package.json file for dependencies on nice-select2 with versions less than 2.4.1. Review the application's code for any dynamic rendering of user input into <select> elements without proper sanitization. Use browser developer tools to inspect DOM elements for unsanitized user input in dropdown menus.

Impact Analysis

An attacker could exploit this to steal cookies, hijack user sessions, expose sensitive information, or deliver malware. For example, injecting a script like <script>javascript:alert(1)</script> into an <option> element could execute when rendered, leading to credential theft or session hijacking.

Compliance Impact

This XSS vulnerability could lead to unauthorized access to sensitive user data, which may violate GDPR's data protection requirements or HIPAA's safeguards for protected health information. Attackers could steal session cookies, expose personal data, or manipulate user interactions, potentially resulting in non-compliance with these regulations.

Mitigation Strategies

Immediately upgrade the nice-select2 package to version 2.4.1 or higher. Implement input sanitization for all user-provided data rendered into <select> elements. Replace unsafe DOM manipulation methods like innerHTML with safer alternatives. Enforce a Content Security Policy (CSP) to restrict script execution. Validate and sanitize embedded HTML in libraries and user inputs.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-17528. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart