DataTables jQuery Plugin Cross-Site Scripting Vulnerability

Vulnerability

A Cross-Site Scripting (XSS) vulnerability exists in the DataTables jQuery plugin, specifically in version 1.9.2. This vulnerability allows attackers to execute arbitrary JavaScript by exploiting the sBaseName parameter in the _fnCreateCookie function. When this parameter is exposed, a malicious user can inject JavaScript code that gets executed in the context of the user's browser.

Impact

Exploitation of this vulnerability could result in Cross-Site Scripting, allowing for the execution of malicious JavaScript in the user's browser.

Reproduction

To reproduce this vulnerability, first ensure that a website is using the vulnerable DataTables jQuery plugin version 1.9.2. Then, expose the sBaseName parameter in a way that it can be accessed. Once the parameter is exposed, add a cookie named 'XSS' with a value of 'alert(6)'. After setting the cookie, the vulnerability can be demonstrated by accessing the console in the browser's developer tools, pasting a snippet of code that references the 'XSS' cookie, and executing it. If the alert dialog appears, the vulnerability has been successfully exploited.

Added: Apr 7, 2026, 11:32 AM
Updated: Apr 7, 2026, 11:32 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
1.7
exploitability
7.7
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.