Skip to main content

V3: Coraza: jsDecode Off-by-One in Octal Escape Handling Enables WAF Bypass (CVE-2026-104774)

0
Medium
Published: 10/08/2026 (10/08/2026, 17:45:53 UTC)
Source: GCVE Database
Product: github.com/corazawaf/coraza/v3

Description

Coraza WAF versions 3.0.0 through 3.7.0 contain an off-by-one error in the jsDecode transformation when parsing JavaScript octal escape sequences. This bug causes the WAF to incorrectly decode octal escapes, resulting in null bytes instead of the intended decoded characters. Attackers can exploit this to bypass WAF rules relying on jsDecode normalization, enabling attacks such as cross-site scripting (XSS) or SQL injection. The issue is fixed in versions 3.8.0 and later.

CVSS v3.1

Score 5.8medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N

Affected software

Goghsa
github.com/corazawaf/coraza/v3
Affected versions
>=3.0.0 <3.8.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/08/2026, 22:12:13 UTC

Technical Analysis

The t:jsDecode transformation in Coraza WAF incorrectly handles octal escape sequences due to an off-by-one error in the code that copies characters into the buffer for parsing. Specifically, the backslash character is mistakenly included in the octal number buffer, causing strconv.ParseInt to fail and return a null byte instead of the correct decoded value. This flaw affects all octal escape sequences (\000 to \377), corrupting JS-escaped payloads and allowing attackers to bypass WAF rules that rely on jsDecode for normalization. Proof-of-concept tests demonstrate that payloads encoded with octal escapes bypass the WAF, while normal payloads are blocked. The vulnerability affects Coraza WAF versions 3.0.0 up to but not including 3.8.0 and has a CVSS 3.1 score of 5.8 (medium severity).

Potential Impact

Attackers can bypass Coraza WAF rules that use the jsDecode transformation by encoding payloads with JavaScript octal escape sequences. This bypass can lead to successful cross-site scripting (XSS), SQL injection, or other injection attacks that the WAF would otherwise block. The vulnerability causes the WAF to misinterpret octal escapes as null bytes, preventing detection of malicious input patterns. No known exploits in the wild have been reported.

Mitigation Recommendations

A fix is available and has been implemented in Coraza WAF version 3.8.0 and later. Users should upgrade to version 3.8.0 or newer to remediate this vulnerability. Until upgraded, be aware that WAF rules relying on jsDecode may be bypassed by octal-encoded payloads.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-pc5q-qfxp-ggqv
Osv Schema Version
1.4.0
Aliases
["CVE-2026-104774"]
Ecosystems
["Go"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6ac80fb92cdf04f65639c2b2

Added to database: 10/08/2026, 21:48:41 UTC

Last enriched: 10/08/2026, 22:12:13 UTC

Last updated: 10/08/2026, 22:12:13 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses