<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-29T15:21:31.619979+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-m7jm-9gc2-mpf2</id>
    <title>GHSA-m7jm-9gc2-mpf2 — fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names</title>
    <updated>2026-09-29T15:21:33.929745+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: fast-xml-parser</p>
<p># Entity encoding bypass via regex injection in DOCTYPE entity names</p>
<p>## Summary</p>
<p>A dot (`.`) in a DOCTYPE entity name is treated as a regex wildcard during entity replacement, allowing an attacker to shadow built-in XML entities (`&amp;lt;`, `&amp;gt;`, `&amp;amp;`, `&amp;quot;`, `&amp;apos;`) with arbitrary values. This bypasses entity encoding and leads to XSS when parsed output is rendered.</p>
<p>## Details</p>
<p>The fix for CVE-2023-34104 addressed some regex metacharacters in entity names but missed `.` (period), which is valid in XML names per the W3C spec.</p>
<p>In `DocTypeReader.js`, entity names are passed directly to `RegExp()`:</p>
<p>```js
entities[entityName] = {
    regx: RegExp(`&amp;${entityName};`, "g"),
    val: val
};
```</p>
<p>An entity named `l.` produces the regex `/&amp;l.;/g` where `.` matches **any character**, including the `t` in `&amp;lt;`. Since DOCTYPE entities are replaced before built-in entities, this shadows `&amp;lt;` entirely.</p>
<p>The same issue exists in `OrderedObjParser.js:81` (`addExternalEntities`), and in the v6 codebase - `EntitiesParser.js` has a `validateEntityName` function with a character blacklist, but `.` is not included:</p>
<p>```js
// v6 EntitiesParser.js line 96
const specialChar = "!?\\/[]$%{}^&amp;*()&lt;&gt;|+";  // no dot
```</p>
<p>## Shadowing all 5 built-in entities</p>
<p>| Entity name | Regex created | Shadows |
|---|---|---|
| `l.` | `/&amp;l.;/g` | `&amp;lt;` |
| `g.` | `/&amp;g.;/g` | `&amp;gt;` |
| `am.` | `/&amp;am.;/g` | `&amp;amp;` |
| `quo.` | `/&amp;quo.;/g` | `&amp;quot;` |
| `apo.` | `/&amp;apo.;/g` | `&amp;apos;` |</p>
<p>## PoC</p>
<p>```js…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-m7jm-9gc2-mpf2"/>
  </entry>
</feed>
