Files
codeql/javascript/ql/test/query-tests/Security/CWE-730/Threat-models-disabled/client-side.js
2025-07-31 13:20:30 +02:00

5 lines
177 B
JavaScript

function foo() {
let taint = window.location.hash.substring(1);
new RegExp(taint); // OK - we do not flag RegExp injection on the client side as the impact is too low
}