# CVE-2026-107826: OWASP Coraza WAF stack overflow in JSON body processor

Source: https://junglewise.ai/threats/cve-2026-107826-coraza-json-body-processor-argument-limit-truncation-reopens-an  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-09. Updated: 2026-10-16  
License: CC BY 4.0 with a link back

CVE-2026-107826 · Severity: high · CVSS 7.5 · Published 2026-10-09

OWASP Coraza is a web application firewall library that inspects HTTP requests and responses for malicious content. Versions 3.0.0 through 3.8.0 can be crashed by submitting a specially crafted JSON body with deeply nested structure that bypasses input validation limits, causing the process to terminate with a fatal stack overflow and resulting in denial of service.

Technologies: [github.com/corazawaf/coraza (Go)](https://junglewise.ai/threats/technologies/github-com-corazawaf-coraza), [github.com/corazawaf/coraza/v2 (Go)](https://junglewise.ai/threats/technologies/github-com-corazawaf-coraza-v2), [github.com/corazawaf/coraza/v3 (Go)](https://junglewise.ai/threats/technologies/github-com-corazawaf-coraza-v3), [OWASP Coraza WAF](https://junglewise.ai/threats/technologies/owasp-coraza-waf). Vendors: [Go](https://junglewise.ai/threats/vendors/go), [OWASP](https://junglewise.ai/threats/vendors/owasp).

## Quick answers

**Is CVE-2026-107826 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-107826 being exploited in the wild.

**How severe is CVE-2026-107826?** High severity, with a CVSS score of 7.5, published 9 October 2026.

**Which products and versions are affected?** github.com/corazawaf/coraza (Go) SEMVER:introduced=0; github.com/corazawaf/coraza/v2 (Go) SEMVER:introduced=0; github.com/corazawaf/coraza/v3 (Go) SEMVER:introduced=3.0.0,fixed=3.8.1; OWASP Coraza WAF 3.0.0 to 3.8.0.

**Is there a fix for CVE-2026-107826?** Yes. github.com/corazawaf/coraza/v3 (Go): upgrade to 3.8.1 or later. Until then: Implement an iterative depth pre-scan before gjson.Valid validation to bound JSON nesting, and reject bodies that exceed maxRecursion depth before calling the validation function. This prevents unbounded recursion without requiring upgrades. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-107826 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-107826?** Check whether you run github.com/corazawaf/coraza (Go), github.com/corazawaf/coraza/v2 (Go), github.com/corazawaf/coraza/v3 (Go) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/corazawaf/coraza/v3 (Go): upgrade to 3.8.1 or later

  ```sh
  go get github.com/corazawaf/coraza/v3@v3.8.1
  ```


Implement an iterative depth pre-scan before gjson.Valid validation to bound JSON nesting, and reject bodies that exceed maxRecursion depth before calling the validation function. This prevents unbounded recursion without requiring upgrades.

## Technical details

The readJSON function in internal/bodyprocessors/json.go stops its bounded flattening walk when hitting SecArgumentsLimit or the byte budget, then unconditionally calls gjson.Valid on the complete raw body without a depth limit. An attacker can craft a shallow JSON structure followed by an extremely deeply nested tail to trigger unbounded recursion in gjson.Valid, crashing the hosting process. The vulnerability affects both ProcessRequest and ProcessResponse JSON paths and requires only network access with no authentication; the payload remains within recommended body-size and argument-count limits.

## Affected products

- OWASP Coraza WAF 3.0.0 to 3.8.0

## Identifiers

- CVE-2026-107826
- GHSA-6gcq-wc29-5xf2
- GO-2026-6693

## Timeline

- 2026-10-09: disclosed
- 2026-10-02: patched: v3.8.1 released

## References

- [https://github.com/corazawaf/coraza/commit/814e1898e083d2ff2ceb644382d0da17e930f93f](https://github.com/corazawaf/coraza/commit/814e1898e083d2ff2ceb644382d0da17e930f93f)
- [https://github.com/corazawaf/coraza/releases/tag/v3.8.1](https://github.com/corazawaf/coraza/releases/tag/v3.8.1)

## Related threats

- [Coraza multipart filename rule bypass via RFC 5987 charset handling](https://junglewise.ai/threats/cve-2026-114101-coraza-before-3-8-1-extracts-multipart-upload-filenames-with-go)
- [Coraza request body inspection bypass in Content-Type parsing](https://junglewise.ai/threats/cve-2026-114100-coraza-from-3-0-4-before-3-8-1-contains-a-request-body)
- [Coraza JSON body processor key collision WAF bypass](https://junglewise.ai/threats/cve-2026-114099-coraza-from-3-0-0-before-3-8-1-has-a-json-body-processor-that)
- [Coraza multipart strict validation bypass via truncated body](https://junglewise.ai/threats/cve-2026-41508-coraza-truncated-multipart-body-bypasses-multipart-strict-error)
- [Coraza CRLF injection in Native audit-log format](https://junglewise.ai/threats/cve-2026-41504-coraza-native-audit-log-format-allows-crlf-injection-and-log)
