# CVE-2026-104774: OWASP Coraza WAF: jsDecode Off-by-One in Octal Escape Handling Enables WAF Bypass

- Severity: Medium 5.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-08T17:45:53.000Z
- Modified: 2026-10-19T21:40:49.940Z
- Also known as: GHSA-pc5q-qfxp-ggqv, GO-2026-6696
- Weaknesses: CWE-172, CWE-193, CWE-693
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- corazawaf coraza: >= 3.0.0, < 3.8.0
- github.com/corazawaf/coraza/v3 (Go): from 3.0.0 before 3.8.0
- github.com/corazawaf/coraza (Go): all versions
- github.com/corazawaf/coraza/v2 (Go): all versions

## Every score

- GitHub_M: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`

## References

- <https://github.com/corazawaf/coraza/security/advisories/GHSA-pc5q-qfxp-ggqv> (exploit, advisory, web)
- <https://github.com/corazawaf/coraza/commit/f9b7afdbcedce7ad814663eaee2e342578ea3bb2> (fix, web)
- <https://github.com/corazawaf/coraza/releases/tag/v3.8.0> (web)
- <https://github.com/corazawaf/coraza> (package)

## Sources

- CVE List: [CVE-2026-104774](https://www.cve.org/CVERecord?id=CVE-2026-104774), CVE Terms of Use, modified 2026-10-13
- GitHub Advisory Database: [GHSA-pc5q-qfxp-ggqv](https://github.com/advisories/GHSA-pc5q-qfxp-ggqv), CC-BY-4.0, modified 2026-10-19
- Go Vulnerability Database: [GO-2026-6696](https://pkg.go.dev/vuln/GO-2026-6696), CC-BY-4.0, modified 2026-10-19
- NVD: [CVE-2026-104774](https://nvd.nist.gov/vuln/detail/CVE-2026-104774), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-104774 · Whole record: https://cve.day/CVE-2026-104774.json · Rebuilt by cve.day 2026-11-25T22:59:43.664Z
