CVE-2026-42268: Modsecurity Libinjection Boolean Failopen

Evaluating `libinjection_xss` or `libinjection_sqli` as a simple boolean or `int` drops explicit fail-safe parser errors introduced in libinjection v4. This allows specifically crafted obfuscated payloads to induce a parser error that bypasses the WAF (fail open). Update to capture the result in an `injection_result_t` and handle both `LIBINJECTION_RESULT_TR

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0C++
greprules fetch cve-2026-42268-modsecurity-libinjection-boolean-failopen --engine opengrep

Description

Evaluating `libinjection_xss` or `libinjection_sqli` as a simple boolean or `int` drops explicit fail-safe parser errors introduced in libinjection v4. This allows specifically crafted obfuscated payloads to induce a parser error that bypasses the WAF (fail open). Update to capture the result in an `injection_result_t` and handle both `LIBINJECTION_RESULT_TR