Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

datatables/datatablessrc
master @ 1b21078
12
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Prototype Pollution: 3 prior fixes. Scrutinize any change in this area.
js/api/api.base.js: most-fixed (2 issues). Treat as high-risk during review.
5 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Prototype Pollution: Deep property resolution via _fnSetObjectDataFn can be abused to pollute the prototype chain, allowing remote attackers to inject arbitrary properties. Earlier fixes blocklisting '__proto__' had to be revised to additionally block 'constructor' properties to prevent bypasses.
SQL Injection: Server-side examples used insecure parameters in database queries. Standard string escaping is insufficient for SQL clauses like LIMIT and ORDER BY; strict integer casting and keyword allowlists are required to secure these parameters.
Reflected XSS: Directly reflecting user-supplied parameters like callback names in JSONP responses or scripts in template files allows execution of arbitrary JavaScript in the user's browser context.