← Lab /Software

Natural rewrites silence 26.2% of CodeQL taint alerts while vulnerability remains

CodeQL's JavaScript taint tracking can be bypassed by vulnerability-preserving rewrites, silencing over a quarter of alerts

Software arXiv 12 Nov 2026 Measurement Prototype evidence

Published as “Preserve the Vulnerability, Break the Alert: Testing the Robustness of CodeQL Taint Tracking with Natural Rewrites”

Why it matters

A disappearing SAST alert no longer reliably indicates that a vulnerability has been fixed; it may simply mean the code crossed the analyzer’s modeling boundary.

Summary

The study finds that natural, vulnerability-preserving rewrites generated by an LLM silence CodeQL’s taint-tracking alerts for 26.2% of the flows it originally detects (pass@3). The silencing rewrites are cheap (about $0.51 per silenced flow) and stem from seven modeling gaps, the largest being the WHATWG URL constructor. A benign baseline that rewrites without seeing the alert never silences an alert, showing the effect depends on targeting the alert. The same rewrites also silence a majority of detections in ODGen and some in njsscan, indicating the issue is not specific to CodeQL. Evidence is based on 172 real npm vulnerabilities and manual audit of 514 rewrite attempts.

What they found 1

  1. LLM-generated rewrites silence CodeQL alerts for 26.2% of evaluated flows.

    “With three natural rewrites per flow, the generator silences the targeted CodeQL flow for 26.2% of the evaluated flows (pass@3).”

Caveats 2

  • The overall flow-level silencing rate is only 13.6%, meaning most rewrites do not hide the alert.
  • The benign baseline that does not see the alert silences 0 of 516 valid rewrites, showing the effect relies on alert awareness.

What’s new here 4

  • Evaluates the robustness of a production taint analyzer to natural, LLM-generated rewrites that preserve the vulnerability.
  • Identifies specific library-modeling gaps that cause false negatives, including gaps inside APIs already modeled.
  • Shows that the same rewrites affect independently designed analyzers, demonstrating a shared boundary beyond CodeQL.
  • Provides a quantified cost and success rate for generating silencing rewrites in a realistic CI setting.