# CVE-2026-140238: node-tar: Newline injection in PAX extended-header records enables entry-attribute forgery (path overwrite → npm postinstall RCE on Windows)

- Priority: **Routine**
- Reason: Not severe (CVSS 7.2, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-12-01 · Modified: 2026-12-01
- Aliases: GHSA-mpg7-vg3p-wc3m, CGA-4r6j-g4x2-wxw9, CGA-jjmq-q8vv-6cx6, CGA-6ww9-5jw2-xqw3, CGA-9xfm-xfmm-r43v, CGA-fjg4-rv9m-3gxp, CGA-qv9f-4m4j-qr8q, CGA-r764-2483-j343, CGA-22jv-j6gx-537w, CGA-22qx-3hh2-p274, CGA-2vhr-rcmj-6c86, CGA-2vqf-r68g-mm2g, CGA-38q6-jwm3-r48f, CGA-4h4c-mxhx-q52p, CGA-527r-3qwc-w6j5, CGA-57hr-p9v5-8pw6, CGA-66v9-cgrh-p6fq, CGA-6w9f-2jf7-44q6, CGA-7hqc-w8q9-6f8m, CGA-84v9-j3hq-gp5m, CGA-89ch-q4fj-2gx5, CGA-8mm7-qm4h-7wjf, CGA-94px-3388-8c92, CGA-99mw-cw87-cxj8, CGA-c82w-33pw-3x7c, CGA-chrx-jq34-9rwq, CGA-cjr4-cqg5-2f5c, CGA-f22q-gcv3-vmgh, CGA-fxq5-9r88-66vw, CGA-g486-x8p8-9v64, CGA-g73f-hcq4-gf45, CGA-gh8m-jx38-j7p3, CGA-gvfm-j3rv-r7xg, CGA-hm8x-grjj-5j7g, CGA-j8gc-5prw-rj9q, CGA-jgrq-vvf6-pg9h, CGA-m8v5-q8g2-q73j, CGA-mxgr-h938-vv3v, CGA-p5px-3p7p-ppxm, CGA-pcwg-xhr8-9frm, CGA-q567-wjj5-37vm, CGA-qg3g-x98g-855f, CGA-r9gx-fmgx-fwhm, CGA-vr69-g2f5-8qxx, CGA-vxqj-c4xw-29v6, CGA-w4r3-26mh-j67x, CGA-w5hw-r2hc-v8fm, CGA-wc5f-vqhq-ph6v, CGA-wp58-6gg4-97m2, CGA-wq2w-x7xg-wpjr, CGA-wv74-9rh4-9qjx, CGA-x4v3-wq3j-562f, CGA-23vv-hqc6-xwx3, CGA-2c78-pq5x-g3x6, CGA-2x79-jwp8-fpwj, CGA-338f-rjmr-v59w, CGA-38fg-4j86-4wjh, CGA-3cvp-jhpg-r524, CGA-3h38-5q6f-97rx, CGA-3hwm-qrgw-m3gm, CGA-3wc5-p3gf-gx5r, CGA-42pr-88gc-87xx, CGA-485h-64h6-v6jv, CGA-4mrg-g257-qg63, CGA-529w-3j9p-jvrg, CGA-562m-72rr-r25q, CGA-58cf-43m7-g7r2, CGA-5r3q-5pvh-pjg3, CGA-5v73-g2rf-fx87, CGA-5xhf-vq7w-3jqc, CGA-5xq9-ccw2-m6qj, CGA-6vjq-hxrf-vxfg, CGA-6w8x-php2-rfcc, CGA-73c2-pqhc-47gq, CGA-743f-wvp8-784h, CGA-7ccq-3868-rr8f, CGA-7cgx-wxj7-g4v7, CGA-7jgw-8vm9-vcg7, CGA-897w-xmvf-89gw, CGA-8j22-vgq5-xjf5, CGA-8r7x-5736-8qqv, CGA-8vg8-fvg7-6x2m, CGA-8x96-2vv2-f84p, CGA-c3fj-j7fj-xhwq, CGA-c56r-qvpf-jg2h, CGA-c97j-r5mw-r8hq, CGA-cf5j-22j2-v644, CGA-cj56-mc38-2x7g, CGA-crff-r386-6qw7, CGA-f58p-fjj6-gcfm, CGA-ff46-m293-596p, CGA-fj2g-8xww-fgf2, CGA-gc66-h32r-6c9h, CGA-gm84-xrm7-549p, CGA-gvh6-ff5f-3pxm, CGA-h334-53w6-qmf8, CGA-h3gq-hgv2-hcr3, CGA-h5gq-4qfx-vfmj, CGA-hp44-55jh-86m5, CGA-j22m-px8q-h88m, CGA-j465-cv29-vjv4, CGA-jcmv-h9fr-7g26, CGA-jcwr-f7w2-9grp, CGA-jhf4-q7f5-q6r5, CGA-jp95-jjpr-q8c6, CGA-jwj6-ww9x-qf7m, CGA-mch3-wc4g-4qhj, CGA-mcmc-2mvw-5vr7, CGA-mfhx-rq2h-whr2, CGA-mjhv-3m36-qjx6, CGA-mx3w-m9hm-6f3w, CGA-p845-c9wv-w8f8, CGA-pgmj-qgvc-m33x, CGA-pvfc-wmg7-jv86, CGA-pvh7-g2hj-872x, CGA-q56p-6cxc-rqhh, CGA-qhj6-p23x-gr4c, CGA-qwp4-ww8r-88f4, CGA-qxh2-p7x3-5r3f, CGA-qxm4-wmxc-53fm, CGA-r2h3-f28p-fwf2, CGA-r56j-3w5j-5jj3, CGA-rp2f-qqmf-m8qh, CGA-v736-cxx4-xmw2, CGA-v8fr-mq2w-w7pc, CGA-v9rm-jqh5-vfcm, CGA-w28q-j5xg-9cg2, CGA-w2jw-xm26-g8m8, CGA-w8c9-7pfv-hj24, CGA-w9rg-245p-vg4p, CGA-wch8-m2x8-cxpq, CGA-wcjh-7xqx-5hqq, CGA-wh6m-vq3q-xrr9, CGA-whfv-2w23-x8vf, CGA-wp8g-3xpq-xwrj, CGA-x5w2-j4fj-wmjc, CGA-x647-8mv8-2qj9, CGA-x696-7x25-56c3, CGA-x73q-4564-xgvh, CGA-x75p-h5w4-j957, CGA-xgp3-3pph-pmh3, CGA-xhfw-jrg3-36p8, CGA-xqwf-f9hr-xfgv, CGA-xqwr-4hc4-72h5, DEBIAN-CVE-2026-140238, CGA-4h3c-j94g-9crx, CGA-px6m-5xhr-8ppv, CGA-28mx-vqj4-hjpq, CGA-4vq6-rvf2-c553, CGA-578v-2jpg-pjfr, CGA-5xj7-h3jf-w4gx, CGA-7gfj-c5wg-p652, CGA-8wr7-8w79-vpqp, CGA-vxjg-qh9x-rwx4, CGA-68h7-hc9v-3r2x, CGA-vv58-885g-62p2, CGA-68cv-942m-235r, CGA-77w7-fg48-qrfv, CGA-9qg2-2h27-j86h, UBUNTU-CVE-2026-140238, CGA-pfmv-ff8c-c75q
- Record: https://cvemate.com/vulnerability/CVE-2026-140238 · JSON: https://cvemate.com/vulnerability/CVE-2026-140238/json

## Description

```text
node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, newline splitting of PAX extended header records permits attacker-controlled entry attributes to be forged. Direct node-tar extraction without strip can overwrite a path within the extraction target. The npm execution chain additionally requires Windows strip:1 normalization, an overwrite of package.json, and later execution of the injected postinstall script; POSIX npm processing with strip:1 is not affected by that chain. This issue is fixed in version 8.0.0.
```

## Signals

- CVSS: 7.2 high (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N
- EPSS: 1.174%, percentile 68.579%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 99)

- chainguard actions-runner (Chainguard): All versions (No fix recorded)
- chainguard browsertime (Chainguard): \< 29.5.1-r1
- chainguard cdxgen-slim (Chainguard): All versions (No fix recorded)
- chainguard code-server (Chainguard): All versions (No fix recorded)
- chainguard cubejs (Chainguard): All versions (No fix recorded)
- chainguard cypress (Chainguard): All versions (No fix recorded)
- chainguard eco-jess (Chainguard): All versions (No fix recorded) \| \< 2026.12.04.47258835307001-r0
- chainguard gemini-cli (Chainguard): All versions (No fix recorded) \| \< 0.72.0-r1
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.4 (Chainguard): All versions (No fix recorded) \| \< 19.4.11-r5
- chainguard gitlab-rails-ce-19.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)
- chainguard graalvm-25-ce-nodejs (Chainguard): All versions (No fix recorded)
- chainguard graalvm-25.1-ce-nodejs (Chainguard): All versions (No fix recorded)
- chainguard graalvm-25.2-ce-nodejs (Chainguard): All versions (No fix recorded)
- chainguard graalvm-25.3-ce-nodejs (Chainguard): All versions (No fix recorded)
- chainguard graalvm-25.4-ce-nodejs (Chainguard): All versions (No fix recorded)

## References

- <https://github.com/isaacs/node-tar/security/advisories/GHSA-mpg7-vg3p-wc3m>
- <https://github.com/isaacs/node-tar/commit/f351e5b4a8916bc8c8f821d0ad926a17d26ea237>
- <https://github.com/isaacs/node-tar/releases/tag/v8.0.0>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-140238>
- <https://github.com/isaacs/node-tar>
- <https://security-tracker.debian.org/tracker/CVE-2026-140238>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140238.json>
- <https://ubuntu.com/security/CVE-2026-140238>
- <https://www.cve.org/CVERecord?id=CVE-2026-140238>

---

Data as of 2026-12-05T08:44:45.417Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
