{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-140238",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2026-11-30T22:04:22.618Z",
        "datePublished": "2026-12-01T17:21:11.959Z",
        "dateUpdated": "2026-12-01T17:21:11.959Z"
    },
    "containers": {
        "cna": {
            "title": "node-tar: Newline injection in PAX extended-header records enables entry-attribute forgery (path overwrite → npm postinstall RCE on Windows)",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-22",
                            "lang": "en",
                            "description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-93",
                            "lang": "en",
                            "description": "CWE-93: Improper Neutralization of CRLF Sequences",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "attackVector": "NETWORK",
                        "attackComplexity": "LOW",
                        "attackRequirements": "NONE",
                        "privilegesRequired": "NONE",
                        "userInteraction": "PASSIVE",
                        "vulnConfidentialityImpact": "LOW",
                        "vulnIntegrityImpact": "HIGH",
                        "vulnAvailabilityImpact": "LOW",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "subAvailabilityImpact": "NONE",
                        "baseScore": 7.2,
                        "baseSeverity": "HIGH",
                        "vectorString": "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",
                        "version": "4.0"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/isaacs/node-tar/security/advisories/GHSA-mpg7-vg3p-wc3m",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/isaacs/node-tar/security/advisories/GHSA-mpg7-vg3p-wc3m"
                },
                {
                    "name": "https://github.com/isaacs/node-tar/commit/f351e5b4a8916bc8c8f821d0ad926a17d26ea237",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/isaacs/node-tar/commit/f351e5b4a8916bc8c8f821d0ad926a17d26ea237"
                },
                {
                    "name": "https://github.com/isaacs/node-tar/releases/tag/v8.0.0",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/isaacs/node-tar/releases/tag/v8.0.0"
                }
            ],
            "affected": [
                {
                    "vendor": "isaacs",
                    "product": "node-tar",
                    "versions": [
                        {
                            "version": "< 8.0.0",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-12-01T17:21:11.959Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "source": {
                "advisory": "GHSA-mpg7-vg3p-wc3m",
                "discovery": "UNKNOWN"
            }
        }
    }
}