---
id: CVE-2026-107826
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.1, readJSON in internal/bodyprocessors/json.go
  can stop its bounded flattening walk after reaching SecArgumentsLimit or the
  byte b…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-674
vendor: corazawaf
product: github.com/corazawaf/coraza/v3
affected:
  - 'github.com/corazawaf/coraza/v3 >= 3.0.0, < 3.8.1'
patched:
  - github.com/corazawaf/coraza/v3 3.8.1
published: '2026-10-09'
updated: '2026-10-09'
sourceUpdated: '2026-10-09T18:17:04.673'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-107826'
references:
  - url: >-
      https://github.com/corazawaf/coraza/commit/814e1898e083d2ff2ceb644382d0da17e930f93f
    label: security-advisories@github.com
  - url: 'https://github.com/corazawaf/coraza/releases/tag/v3.8.1'
    label: security-advisories@github.com
  - url: >-
      https://github.com/corazawaf/coraza/security/advisories/GHSA-6gcq-wc29-5xf2
    label: security-advisories@github.com
  - url: >-
      https://github.com/corazawaf/coraza/security/advisories/GHSA-6gcq-wc29-5xf2
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://github.com/advisories/GHSA-6gcq-wc29-5xf2'
tags:
  - nvd
  - ghsa
  - go
aliases:
  - GHSA-6gcq-wc29-5xf2
ecosystem: go
ingestedAt: '2026-10-09T18:07:39.420Z'
---

## Overview

OWASP Coraza WAF is a golang modsecurity compatible web application firewall library. From 3.0.0 until 3.8.1, readJSON in internal/bodyprocessors/json.go can stop its bounded flattening walk after reaching SecArgumentsLimit or the byte budget and then call gjson.Valid on the complete raw body. An unauthenticated attacker can submit shallow values followed by an extremely deeply nested JSON tail that was not visited by the bounded walk, causing gjson.Valid to recurse without a depth bound and terminate the hosting process with an unrecoverable fatal stack overflow. The ProcessRequest and ProcessResponse JSON paths share the affected readJSON validation flow, and the payload can remain within recommended body-size and argument-count limits. This issue is fixed in version 3.8.1.

## Remediation

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

## Package advisory (CVE-2026-107826)

Affected packages:

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

Patched in:

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

Source: https://github.com/advisories/GHSA-6gcq-wc29-5xf2
