Skip to content
OpenAdvisories
Medium · 5.8 CVE-2026-104774 EUVD-2026-97825GHSA-pc5q-qfxp-ggqvGO-2026-6696

OWASP Coraza WAF: jsDecode Off-by-One in Octal Escape Handling Enables WAF Bypass

Published Oct 12, 2026 · Updated Oct 13, 2026 · Assigned by GitHub_M

Description

OWASP Coraza WAF is a golang modsecurity compatible web application firewall library. From 3.0.0 until 3.8.0, the t:jsDecode transformation in internal/transformations/js_decode.go:64-70 includes the backslash in the octal buffer, causing ParseInt to fail and return a null byte. The flaw is triggered when a rule relies on t:jsDecode and the request contains JavaScript octal escape sequences. An unauthenticated attacker can encode attack syntax with JavaScript octal escapes so the backend decodes the intended bytes while Coraza rules using t:jsDecode inspect corrupted null-byte output. The mismatch can bypass WAF rules and expose the protected application to attacks such as cross-site scripting or SQL injection. This issue is fixed in version 3.8.0.

Affected products

VendorProductAffectedFixed
corazawaf coraza >= 3.0.0, < 3.8.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/corazawaf/coraza all versions — GO-2026-6696
Go github.com/corazawaf/coraza/v2 all versions — GO-2026-6696
Go github.com/corazawaf/coraza/v3 >= 3.0.0, < 3.8.0 3.8.0 GHSA-pc5q-qfxp-ggqv

References