<?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>Tue, 29 Sep 2026 22:26:15 +0000</lastBuildDate>
    <item>
      <title>GHSA-h67p-54hq-rp68 — JS-YAML: Quadratic-complexity DoS in merge key handling via repeated aliases</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-h67p-54hq-rp68</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: js-yaml&lt;/p&gt;
&lt;p&gt;### Summary
A crafted YAML document can trigger algorithmic CPU exhaustion in `js-yaml` merge-key processing (`&amp;lt;&amp;lt;`) by repeating the same alias many times in a merge sequence.  
This causes quadratic parse-time behavior relative to input size and can block a Node.js worker/event loop for seconds with a relatively small payload (tens of KB), resulting in denial of service.&lt;/p&gt;
&lt;p&gt;### Details
The issue is in merge handling inside `lib/loader.js`:&lt;/p&gt;
&lt;p&gt;- `storeMappingPair(...)` iterates every element of a merge sequence when key tag is `tag:yaml.org,2002:merge`.
- For each element, it calls `mergeMappings(...)`.
- `mergeMappings(...)` computes `Object.keys(source)` and performs `_hasOwnProperty.call(destination, key)` checks for each key.&lt;/p&gt;
&lt;p&gt;When input is of the form:&lt;/p&gt;
&lt;p&gt;a: &amp;amp;a {k0:0, k1:0, ..., kK:0}
b: {&amp;lt;&amp;lt;: [*a, *a, *a, ... repeated M times ...]}
all *a entries refer to the same anchored object. After the first merge, subsequent merges are semantically no-ops, but the parser still reprocesses all keys each time.
Resulting work is O(K * M), while input size is O(K + M), giving quadratic scaling as payload grows.
Relevant code path:
lib/loader.js in storeMappingPair(...) merge branch (keyTag === &amp;#39;tag:yaml.org,2002:merge&amp;#39;)
lib/loader.js mergeMappings(...)&lt;/p&gt;
&lt;p&gt;### Root cause
File:       lib/loader.js
Function:   storeMappingPair(state, _result, overridableKeys, keyTag, keyNode,
                             valueNode, startLine, startLineStart, startPos)
Lines:      ~359-366&lt;/p&gt;
&lt;p&gt;if (keyTag === &amp;#39;t…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: js-yaml&lt;/p&gt;
&lt;p&gt;### Summary
A crafted YAML document can trigger algorithmic CPU exhaustion in `js-yaml` merge-key processing (`&amp;lt;&amp;lt;`) by repeating the same alias many times in a merge sequence.  
This causes quadratic parse-time behavior relative to input size and can block a Node.js worker/event loop for seconds with a relatively small payload (tens of KB), resulting in denial of service.&lt;/p&gt;
&lt;p&gt;### Details
The issue is in merge handling inside `lib/loader.js`:&lt;/p&gt;
&lt;p&gt;- `storeMappingPair(...)` iterates every element of a merge sequence when key tag is `tag:yaml.org,2002:merge`.
- For each element, it calls `mergeMappings(...)`.
- `mergeMappings(...)` computes `Object.keys(source)` and performs `_hasOwnProperty.call(destination, key)` checks for each key.&lt;/p&gt;
&lt;p&gt;When input is of the form:&lt;/p&gt;
&lt;p&gt;a: &amp;amp;a {k0:0, k1:0, ..., kK:0}
b: {&amp;lt;&amp;lt;: [*a, *a, *a, ... repeated M times ...]}
all *a entries refer to the same anchored object. After the first merge, subsequent merges are semantically no-ops, but the parser still reprocesses all keys each time.
Resulting work is O(K * M), while input size is O(K + M), giving quadratic scaling as payload grows.
Relevant code path:
lib/loader.js in storeMappingPair(...) merge branch (keyTag === &amp;#39;tag:yaml.org,2002:merge&amp;#39;)
lib/loader.js mergeMappings(...)&lt;/p&gt;
&lt;p&gt;### Root cause
File:       lib/loader.js
Function:   storeMappingPair(state, _result, overridableKeys, keyTag, keyNode,
                             valueNode, startLine, startLineStart, startPos)
Lines:      ~359-366&lt;/p&gt;
&lt;p&gt;if (keyTag === &amp;#39;t…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-h67p-54hq-rp68</guid>
    </item>
  </channel>
</rss>
