nday
CVE-2026-140012 GHSA-6jpm-p5cq-9q44

Terser: Input sourcemap sourcesContent leaks, revealing input source code

terser / terser

Patch on record 1 day after disclosure. Patched: fixed in terser 4.8.2 and terser 5.51.3. None of the four PoC sources lists it. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

remote, unauthenticated
AV:N, PR:N, UI:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N (CVSS 3.1) from the CNA GitHub_M
network
AV:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N (CVSS 3.1) from the CNA GitHub_M
no authentication required
PR:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N (CVSS 3.1) from the CNA GitHub_M
no user interaction
UI:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N (CVSS 3.1) from the CNA GitHub_M
npm
GHSA-6jpm-p5cq-9q44: npm packages terser
stage
PAT
disclosed
disclosure → patch
T+1d
cvss
5.3 MEDIUM v3.1

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
11-30T21:56Z
PATpatch
12-01T19:01Z
ANAanalysis
no record yet
POCPoC
no record yet
ITWexploited
no record yet
KEVKEV
no record yet

Summary

Terser is a JavaScript parser, mangler, and compressor toolkit for ES6+. Prior to 4.8.2, and from 5.0.0 to before 5.51.3, when minify() is given an input source map through the sourceMap.content option, Terser copies that map's sourcesContent into the generated source map even when includeSources is false. Anyone who receives the generated source map can read the original source code, which may include comments, constants, or embedded secret tokens. This issue is fixed in versions 4.8.2 and 5.51.3.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no special conditions; the attacker can expect repeatable success
Privileges required PR:N
None: no account or authorization needed
User interaction UI:N
None: no action by anyone other than the attacker

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

CVSS 3.1 vector from the CVE record, scored by the CNA GitHub_M.

Event log

+DISdisclosed

CVE record published by GitHub_M. CVSS 5.3, medium.

src cvelist · nday , observed live · raw
{
  "id": 563076,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-140012",
  "occurred_at": "2026-11-30T21:56:49.877Z",
  "observed_at": "2026-11-30T23:00:12.614178Z",
  "is_backfill": false,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N",
      "version": "3.1",
      "base_score": 5.3,
      "base_severity": "MEDIUM"
    },
    "state": "PUBLISHED",
    "date_published": "2026-11-30T21:56:49.877Z",
    "assigner_short_name": "GitHub_M"
  }
}
no source time; observed live by nday
+PATpatch released

The advisory gives fixed versions terser 4.8.2 and terser 5.51.3. Fix commits are linked. Advisory published ; the patch's own release time is not recorded.

src ghsa GHSA-6jpm-p5cq-9q44 · nday , observed live · raw
{
  "id": 564645,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-6jpm-p5cq-9q44",
  "occurred_at": null,
  "observed_at": "2026-12-01T19:01:02.580899Z",
  "is_backfill": false,
  "dedupe_key": "GHSA-6jpm-p5cq-9q44",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 5.3,
        "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
      },
      "cvss_v4": {
        "score": 0.0,
        "vector_string": null
      }
    },
    "cwes": [
      {
        "name": "Inclusion of Sensitive Information in Source Code",
        "cwe_id": "CWE-540"
      }
    ],
    "ghsa_id": "GHSA-6jpm-p5cq-9q44",
    "packages": [
      {
        "name": "terser",
        "ecosystem": "npm",
        "first_patched_version": "4.8.2",
        "vulnerable_version_range": "< 4.8.2"
      },
      {
        "name": "terser",
        "ecosystem": "npm",
        "first_patched_version": "5.51.3",
        "vulnerable_version_range": ">= 5.0.0, < 5.51.3"
      }
    ],
    "severity": "medium",
    "references": [
      "https://github.com/terser/terser/security/advisories/GHSA-6jpm-p5cq-9q44",
      "https://nvd.nist.gov/vuln/detail/CVE-2026-140012",
      "https://github.com/terser/terser/commit/a63e814e816405e1d9cad106b1aeaa29c5c12bdc",
      "https://github.com/terser/terser/commit/bab93bde6e2156cdd2fdd27eadc4dffd7362dee3",
      "https://github.com/terser/terser/releases/tag/v4.8.2",
      "https://github.com/terser/terser/releases/tag/v5.51.3",
      "https://github.com/advisories/GHSA-6jpm-p5cq-9q44"
    ],
    "fix_commit_urls": [
      "https://github.com/terser/terser/commit/a63e814e816405e1d9cad106b1aeaa29c5c12bdc",
      "https://github.com/terser/terser/commit/bab93bde6e2156cdd2fdd27eadc4dffd7362dee3"
    ],
    "github_reviewed_at": "2026-12-01T18:35:11Z",
    "advisory_updated_at": "2026-12-01T18:35:14Z",
    "source_code_location": "https://github.com/terser/terser",
    "advisory_published_at": "2026-12-01T18:35:11Z"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.