Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2025-69874

nanotar through 0.2.0 has a path traversal vulnerability in parseTar() and parseTarGzip() that allows remote attackers to write arbitrary files outside the intended extraction directory via a crafted tar archive containing path traversal sequence.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-69874
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 15:49 UTC · Revision 1

Source evidence

CVE-2025-69874

core-osv · Original source

Published 11 Feb 2026, 00:00 UTC

nanotar through 0.2.0 has a path traversal vulnerability in parseTar() and parseTarGzip() that allows remote attackers to write arbitrary files outside the intended extraction directory via a crafted tar archive containing path traversal sequence.

osv:CVE-2025-69874
Complete source record
{
  "id": "28c085f913038e04accb60471e974ded7ccf67f80f5f32bf59099396eab9e527",
  "url": "https://osv.dev/vulnerability/CVE-2025-69874",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2025-69874",
    "summary": "nanotar through 0.2.0 has a path traversal vulnerability in parseTar() and parseTarGzip() that allows remote attackers to write arbitrary files outside the intended extraction directory via a crafted tar archive containing path traversal sequence.",
    "evidence": "osv:CVE-2025-69874",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2025-69874",
      "aliases": [
        "CVE-2025-69874",
        "GHSA-92fh-27vv-894w"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/unjs/nanotar",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "b23c4cb6d6bf48607d359d8d013a0ecc41052b95"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.2.0"
                      }
                    ],
                    "source": "DESCRIPTION"
                  },
                  {
                    "cpe": "cpe:2.3:a:unjs:nanotar:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.2.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.2.0",
            "v0.1.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-69874.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:51.226040835Z",
      "provider": "osv",
      "references": [
        "https://github.com/EthanKim88/ethan-cve-disclosures/blob/main/CVE-2025-69874-nanotar-Path-Traversal.md",
        "https://www.npmjs.com/package/nanotar",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/69xxx/CVE-2025-69874.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-69874",
        "https://github.com/unjs/nanotar"
      ],
      "provider_metadata": {
        "cna_assigner": "mitre",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/69xxx/CVE-2025-69874.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-69874",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 519802,
  "published_at": "2026-02-11T00:00:00+00:00"
}