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.
Published: 2026-10-12
Score: 5.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: WAF Bypass
Action: Apply Patch
AI Analysis

Impact

The vulnerability is an off‑by‑one flaw in the jsDecode transformation used by Coraza WAF. When the transformation encounters a backslash inside a JavaScript octal escape, it incorrectly includes the backslash in the buffer, causing ParseInt to produce a null byte in the decoded output. If a rule relies on jsDecode, the WAF then inspects a corrupted null‑byte sequence while the underlying application receives the originally intended bytes. This mismatch allows an attacker to embed malicious payloads using octal escapes that are not detected by the WAF, potentially leading to cross‑site scripting or SQL injection attacks. The weakness can be classified as an input handling error that enables attacker supplied data to bypass security controls. The CVE lists CWE‑172, CWE‑193 and CWE‑693 as relevant weaknesses.

Affected Systems

The issue affects all Coraza WAF installations running version 3.0.0 through 3.8.0 inclusive. Version 3.8.0, released in the referenced GitHub tag, address the bug by correcting the jsDecode logic. Any instance of Coraza deployed in a production environment that relies on the t:jsDecode transformation and hosts the vulnerable rule set should be considered affected.

Risk and Exploitability

The vulnerability has a CVSS score of 5.8, indicating moderate severity. The EPSS score is not available and the defect is not listed in CISA KEV. An attacker does not need any special privileges or authentication; the flaw can be triggered via arbitrary HTTP requests that include JavaScript octal escapes in a part of the request that is hashed by a jsDecode rule. Because the attacker only needs to craft a request payload, the risk of successful exploitation is non‑negligible in environments where the rules are actively used while not yet upgraded. In the absence of a patch, the flaw represents a direct bypass of WAF protection and may lead to data exfiltration or injection attacks.

Generated by OpenCVE AI on October 12, 2026 at 21:27 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Coraza WAF to version 3.8.0 or later, which fixes the jsDecode transformation logic.
  • If a patch cannot be applied immediately, temporarily disable or remove any rules that employ the t:jsDecode transformation until the update is applied.
  • Implement application‑level input validation to detect and sanitize JavaScript octal escape sequences before they reach the WAF or backend processing.

Generated by OpenCVE AI on October 12, 2026 at 21:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-pc5q-qfxp-ggqv Coraza: jsDecode Off-by-One in Octal Escape Handling Enables WAF Bypass
History

Tue, 13 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 13 Oct 2026 07:30:00 +0000

Type Values Removed Values Added
First Time appeared Coraza
Coraza coraza
Vendors & Products Coraza
Coraza coraza

Mon, 12 Oct 2026 20:00:00 +0000

Type Values Removed Values Added
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.
Title OWASP Coraza WAF: jsDecode Off-by-One in Octal Escape Handling Enables WAF Bypass
Weaknesses CWE-172
CWE-193
CWE-693
References
Metrics cvssV3_1

{'score': 5.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-13T15:56:59.766Z

Reserved: 2026-10-02T13:06:26.764Z

Link: CVE-2026-104774

cve-icon Vulnrichment

Updated: 2026-10-13T15:56:33.389Z

cve-icon NVD

Status : Deferred

Published: 2026-10-12T20:17:07.617

Modified: 2026-10-16T20:04:29.760

Link: CVE-2026-104774

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-13T07:15:15Z

Weaknesses