<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Tue, 20 Oct 2026 23:53:34 +0000</lastBuildDate>
    <item>
      <title>GHSA-xf7x-x43h-rpqh — json_repair: Circular JSON Schema `$ref` causes unbounded CPU DoS</title>
      <link>https://db.gcve.eu/vuln/ghsa-xf7x-x43h-rpqh</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: json-repair&lt;/p&gt;
&lt;p&gt;## Circular JSON Schema `$ref` causes unbounded CPU DoS in `json_repair`&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;`SchemaRepairer.resolve_schema()` in `json_repair` follows JSON Schema `$ref` pointers in an unbounded `while` loop without any cycle detection. An attacker who can supply a schema containing a self-referencing `$ref` (e.g., via the demo Flask API or any application that passes untrusted input to `loads(..., schema=...)`), can cause a worker process to spin indefinitely on CPU, resulting in a complete denial of service. No authentication is required against the public demo API. The vulnerability is confirmed reproducible at CVSS 7.5 (High).&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;`SchemaRepairer.resolve_schema()` at `src/json_repair/schema_repair.py:184–190` resolves `$ref` chains using a plain `while` loop:&lt;/p&gt;
&lt;p&gt;```python
# src/json_repair/schema_repair.py:184-190
schema_dict = cast(&amp;#34;dict[str, Any]&amp;#34;, schema)
while &amp;#34;$ref&amp;#34; in schema_dict:
    ref = schema_dict[&amp;#34;$ref&amp;#34;]
    resolved = self._resolve_ref(ref)
    if isinstance(resolved, bool):
        return resolved
    schema_dict = resolved
```&lt;/p&gt;
&lt;p&gt;`_resolve_ref()` at `src/json_repair/schema_repair.py:654–665` always resolves references relative to `self.root_schema`, which is initialised from the caller-supplied schema (`src/json_repair/schema_repair.py:130`). When the schema contains a circular reference such as:&lt;/p&gt;
&lt;p&gt;```json
{&amp;#34;$ref&amp;#34;: &amp;#34;#/definitions/a&amp;#34;, &amp;#34;definitions&amp;#34;: {&amp;#34;a&amp;#34;: {&amp;#34;$ref&amp;#34;: &amp;#34;#/definitions/a&amp;#34;}}}
```&lt;/p&gt;
&lt;p&gt;`_resolve_ref()` returns the same `dict` object on every iteration,…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: json-repair&lt;/p&gt;
&lt;p&gt;## Circular JSON Schema `$ref` causes unbounded CPU DoS in `json_repair`&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;`SchemaRepairer.resolve_schema()` in `json_repair` follows JSON Schema `$ref` pointers in an unbounded `while` loop without any cycle detection. An attacker who can supply a schema containing a self-referencing `$ref` (e.g., via the demo Flask API or any application that passes untrusted input to `loads(..., schema=...)`), can cause a worker process to spin indefinitely on CPU, resulting in a complete denial of service. No authentication is required against the public demo API. The vulnerability is confirmed reproducible at CVSS 7.5 (High).&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;`SchemaRepairer.resolve_schema()` at `src/json_repair/schema_repair.py:184–190` resolves `$ref` chains using a plain `while` loop:&lt;/p&gt;
&lt;p&gt;```python
# src/json_repair/schema_repair.py:184-190
schema_dict = cast(&amp;#34;dict[str, Any]&amp;#34;, schema)
while &amp;#34;$ref&amp;#34; in schema_dict:
    ref = schema_dict[&amp;#34;$ref&amp;#34;]
    resolved = self._resolve_ref(ref)
    if isinstance(resolved, bool):
        return resolved
    schema_dict = resolved
```&lt;/p&gt;
&lt;p&gt;`_resolve_ref()` at `src/json_repair/schema_repair.py:654–665` always resolves references relative to `self.root_schema`, which is initialised from the caller-supplied schema (`src/json_repair/schema_repair.py:130`). When the schema contains a circular reference such as:&lt;/p&gt;
&lt;p&gt;```json
{&amp;#34;$ref&amp;#34;: &amp;#34;#/definitions/a&amp;#34;, &amp;#34;definitions&amp;#34;: {&amp;#34;a&amp;#34;: {&amp;#34;$ref&amp;#34;: &amp;#34;#/definitions/a&amp;#34;}}}
```&lt;/p&gt;
&lt;p&gt;`_resolve_ref()` returns the same `dict` object on every iteration,…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/ghsa-xf7x-x43h-rpqh</guid>
    </item>
  </channel>
</rss>
