---
id: CVE-2026-104774
title: >-
  OWASP Coraza WAF is a golang modsecurity compatible web application firewall
  library
summary: >-
  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, causin…
severity: medium
cvss: 5.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N'
cwe:
  - CWE-172
  - CWE-193
  - CWE-693
vendor: corazawaf
product: github.com/corazawaf/coraza/v3
affected:
  - 'github.com/corazawaf/coraza/v3 >= 3.0.0, < 3.8.0'
patched:
  - github.com/corazawaf/coraza/v3 3.8.0
published: '2026-10-12'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T20:04:29.760'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-104774'
references:
  - url: >-
      https://github.com/corazawaf/coraza/commit/f9b7afdbcedce7ad814663eaee2e342578ea3bb2
    label: security-advisories@github.com
  - url: 'https://github.com/corazawaf/coraza/releases/tag/v3.8.0'
    label: security-advisories@github.com
  - url: >-
      https://github.com/corazawaf/coraza/security/advisories/GHSA-pc5q-qfxp-ggqv
    label: security-advisories@github.com
  - url: >-
      https://github.com/corazawaf/coraza/security/advisories/GHSA-pc5q-qfxp-ggqv
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://github.com/corazawaf/coraza'
  - url: 'https://github.com/advisories/GHSA-pc5q-qfxp-ggqv'
tags:
  - nvd
  - osv
  - go
  - ghsa
  - cve.org
  - exploit-available
epss: 0.00322
epssPercentile: 0.25075
aliases:
  - GHSA-pc5q-qfxp-ggqv
  - GO-2026-6696
ecosystem: go
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-10-13T15:56:13.215165Z'
ingestedAt: '2026-10-08T17:56:11.722Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-104774)

Affected packages:

- `github.com/corazawaf/coraza/v3 >= 3.0.0, < 3.8.0`

Patched in:

- `github.com/corazawaf/coraza/v3 3.8.0`

Source: https://osv.dev/vulnerability/GHSA-pc5q-qfxp-ggqv
