<?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://vulnerability.circl.lu</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>Fri, 02 Oct 2026 14:14:36 +0000</lastBuildDate>
    <item>
      <title>GHSA-jp2q-39xq-3w4g — Entity Expansion Limits Bypassed When Set to Zero Due to JavaScript Falsy Evaluation in fast-xml-parser</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-jp2q-39xq-3w4g</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: fast-xml-parser&lt;/p&gt;
&lt;p&gt;## Summary&lt;/p&gt;
&lt;p&gt;The `DocTypeReader` in fast-xml-parser uses JavaScript truthy checks to evaluate `maxEntityCount` and `maxEntitySize` configuration limits. When a developer explicitly sets either limit to `0` — intending to disallow all entities or restrict entity size to zero bytes — the falsy nature of `0` in JavaScript causes the guard conditions to short-circuit, completely bypassing the limits. An attacker who can supply XML input to such an application can trigger unbounded entity expansion, leading to memory exhaustion and denial of service.&lt;/p&gt;
&lt;p&gt;## Details&lt;/p&gt;
&lt;p&gt;The `OptionsBuilder.js` correctly preserves a user-supplied value of `0` using nullish coalescing (`??`):&lt;/p&gt;
&lt;p&gt;```js
// src/xmlparser/OptionsBuilder.js:111
maxEntityCount: value.maxEntityCount ?? 100,
// src/xmlparser/OptionsBuilder.js:107
maxEntitySize: value.maxEntitySize ?? 10000,
```&lt;/p&gt;
&lt;p&gt;However, `DocTypeReader.js` uses truthy evaluation to check these limits. Because `0` is falsy in JavaScript, the entire guard expression short-circuits to `false`, and the limit is never enforced:&lt;/p&gt;
&lt;p&gt;```js
// src/xmlparser/DocTypeReader.js:30-32
if (this.options.enabled !== false &amp;amp;&amp;amp;
    this.options.maxEntityCount &amp;amp;&amp;amp;          // ← 0 is falsy, skips check
    entityCount &amp;gt;= this.options.maxEntityCount) {
    throw new Error(`Entity count ...`);
}
```&lt;/p&gt;
&lt;p&gt;```js
// src/xmlparser/DocTypeReader.js:128-130
if (this.options.enabled !== false &amp;amp;&amp;amp;
    this.options.maxEntitySize &amp;amp;&amp;amp;            // ← 0 is falsy, skips check
    entityValue.length &amp;gt; this.optio…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: fast-xml-parser&lt;/p&gt;
&lt;p&gt;## Summary&lt;/p&gt;
&lt;p&gt;The `DocTypeReader` in fast-xml-parser uses JavaScript truthy checks to evaluate `maxEntityCount` and `maxEntitySize` configuration limits. When a developer explicitly sets either limit to `0` — intending to disallow all entities or restrict entity size to zero bytes — the falsy nature of `0` in JavaScript causes the guard conditions to short-circuit, completely bypassing the limits. An attacker who can supply XML input to such an application can trigger unbounded entity expansion, leading to memory exhaustion and denial of service.&lt;/p&gt;
&lt;p&gt;## Details&lt;/p&gt;
&lt;p&gt;The `OptionsBuilder.js` correctly preserves a user-supplied value of `0` using nullish coalescing (`??`):&lt;/p&gt;
&lt;p&gt;```js
// src/xmlparser/OptionsBuilder.js:111
maxEntityCount: value.maxEntityCount ?? 100,
// src/xmlparser/OptionsBuilder.js:107
maxEntitySize: value.maxEntitySize ?? 10000,
```&lt;/p&gt;
&lt;p&gt;However, `DocTypeReader.js` uses truthy evaluation to check these limits. Because `0` is falsy in JavaScript, the entire guard expression short-circuits to `false`, and the limit is never enforced:&lt;/p&gt;
&lt;p&gt;```js
// src/xmlparser/DocTypeReader.js:30-32
if (this.options.enabled !== false &amp;amp;&amp;amp;
    this.options.maxEntityCount &amp;amp;&amp;amp;          // ← 0 is falsy, skips check
    entityCount &amp;gt;= this.options.maxEntityCount) {
    throw new Error(`Entity count ...`);
}
```&lt;/p&gt;
&lt;p&gt;```js
// src/xmlparser/DocTypeReader.js:128-130
if (this.options.enabled !== false &amp;amp;&amp;amp;
    this.options.maxEntitySize &amp;amp;&amp;amp;            // ← 0 is falsy, skips check
    entityValue.length &amp;gt; this.optio…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-jp2q-39xq-3w4g</guid>
    </item>
  </channel>
</rss>
