DataTables
cpe:2.3:a:datatables:datatables.net:*:*:*:*:node.js:*:*
- < 1.11.3
A cross-site scripting (XSS) vulnerability exists in the DataTables library versions prior to 1.11.3. The issue arises because the HTML escape entities function does not properly escape the contents of an array if one is passed, leading to potential injection of malicious scripts.
Exploitation of this vulnerability allows for cross-site scripting, where injected scripts are executed in the context of the user's browser, potentially leading to session hijacking or exposure of sensitive information.
To reproduce this vulnerability, use DataTables version prior to 1.11.3 and pass an array containing unescaped HTML, such as an image tag with an 'onerror' event, to the HTML escape entities function. The DataTables table should be rendered with a column that uses the 'text' renderer, which does not sanitize the HTML, allowing the injected script to execute.
Upgrade DataTables to version 1.11.3 or later.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.