medium

CVE-2026-142623

Packagist · laravel/framework

Summary

Laravel: Unbounded $ref chain resolution in Illuminate\JsonSchema\Deserializer allows denial of service

Severity
medium
CVSS
5.3
EPSS
0.5% (p46)
CWE
CWE-400, CWE-674
Also known as
GHSA-cgwv-q695-mj8g
Published
2026-12-03
Updated
2026-12-03

Advisory details

Impact

Illuminate\JsonSchema\Deserializer resolved chained local $ref pointers recursively without limiting the depth of the chain. Applications that pass attacker-influenced JSON Schema data to JsonSchema::fromArray() or Deserializer::deserialize() could be sent a crafted schema containing a long linear chain of $ref references. Resolving it consumes memory and CPU rapidly and can exhaust the PHP memory limit, terminating the worker process. Repeated requests can sustain the outage. Applications that only deserialize developer-defined schemas are not affected.

Patches

The fix limits the depth of chained $ref resolution and throws an InvalidArgumentException when the limit is exceeded. It has been merged into the 12.x branch: https://github.com/laravel/framework/pull/62498

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.