Skip to main content
VulnerabilityPublished Updated

gptme · json_repair: Circular JSON Schema `$ref` causes unbounded CPU DoS

Affects gptmeSource GCVE Database

0

CVSS 7.5 High : upgrade to 0.32.0 soon.

Data as of 1 Dec 2026, 20:03 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 0.32.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What to do

Upgrade gptme to 0.32.0.

Affected software

ProductAffectedFixed in
Homebrewgptmepkg:brew/gptmeOther threatsAffected
  • >=0.25.0 <0.32.0
Fixed in
  • 0.32.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in json_repair version 0.32.0 that adds cycle detection to the $ref resolution logic, preventing infinite loops caused by circular references. Users should upgrade to version 0.32.0 or later. Until upgraded, avoid passing untrusted schemas to json_repair or implement external validation to detect circular $ref chains. The vendor advisory confirms the fix and recommends upgrading.

Description

A denial of service vulnerability exists in json_repair versions 0.25.0 through before 0.32.0 due to unbounded resolution of circular JSON Schema $ref pointers. The SchemaRepairer.resolve_schema() method follows $ref chains in an infinite loop without cycle detection, allowing an attacker to cause a worker process to consume CPU indefinitely. This can be triggered without authentication via the public demo Flask API by submitting a crafted schema with a self-referencing $ref. The issue is fixed in version 0.32.0.

References

Community reviews

Loading reviews…