<?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://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-12-02T10:31:33.913000+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" 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://db.gcve.eu/vuln/fkie_cve-2026-140239</id>
    <title>fkie_cve-2026-140239</title>
    <updated>2026-12-02T10:31:33.915234+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, a PAX Global Extended Header containing linkpath can populate entry.linkpath on every entry returned by tar.Parser without a strict-mode warning. Direct tar.Parser or tar.list consumers that trust this value can create paths or symlinks outside their intended directory, resulting in arbitrary file read or write. Node-tar's own tar.x and tar.extract operations are not affected because Unpack separately rejects an escaping linkpath. This issue is fixed in version 8.0.0.</p>
      </div>
    </content>
    <link href="https://db.gcve.eu/vuln/fkie_cve-2026-140239"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-ffhw-4r4q-5cwv</id>
    <title>GHSA-ffhw-4r4q-5cwv — node-tar: Global PAX extended header injects attacker-controlled linkpath into tar.Parser entries, bypassing strict-mod…</title>
    <updated>2026-12-02T10:31:33.915333+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: tar</p>
<p>## Summary</p>
<p>A tar archive with a **Global Extended Header** (PAX type `g`) with a `linkpath` field injects that value into every entry returned by `tar.Parser` , including plain `File` and `Directory` entries, with **zero warnings under `strict: true`**. This happens because `header.js`'s `#slurp()` correctly excludes `linkpath` from global headers, but `read-entry.js`'s `#slurp()` does not apply the same filter. Any application that consumes `tar.Parser` or `tar.list()` directly and uses `entry.linkpath` to build paths or create symlinks, without revalidating the value, can be made to read or write files outside the intended directory via a crafted symlink.</p>
<p>---</p>
<p>## Details</p>
<p>There are two separate `#slurp()` implementations apply Global Extended Header (`g`-type) fields to parsed state, and they filter different fields.</p>
<p>In `src/header.js`, `#slurp(ex, gex = false)` **correctly** excludes `linkpath` when `gex` is `true`:</p>
<p>```js
// header.js (correct)
if (k === 'linkpath' &amp;&amp; gex) continue;
```</p>
<p>In `src/read-entry.js`, the equivalent method has **no such clause** — it only excludes `path`:</p>
<p>```js
// read-entry.js (bug: linkpath is not excluded)
if (k === 'path' &amp;&amp; gex) continue;
// linkpath from the GEX is not filtered here
```</p>
<p>The execution flow:</p>
<p>1. `parse.js` calls `Pax.parse(meta, gex, true)` → stores the GEX object, including the `linkpath` field
2. `header.js` decode runs `#slurp(gex, true)` → correctly skips `linkpath` → `header.linkpath` is empty
3. `consumeHeader()`…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-ffhw-4r4q-5cwv"/>
  </entry>
</feed>
