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

Terser: Input sourcemap sourcesContent leaks, revealing input source code

terser / terser

公開から 1 日後に修正版が確認されています。修正済みバージョンは terser 4.8.2、terser 5.51.3 です。4 つの PoC ソースのいずれにも未掲載です。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
現在の段階
PAT
公開日時
公開から修正版まで
T+1d
CVSS 基本値
5.3 MEDIUM v3.1

ライフサイクル

横軸は UTC。点=分単位、幅広の帯=日付のみ、白抜き=不明または推定。
日時不明
DIS公開
11-30T21:56Z
PAT修正
12-01T19:01Z
ANA解析
記録なし
POCPoC
記録なし
ITW悪用
記録なし
KEVKEV
記録なし

概要

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.

イベント履歴

+DIS公開

GitHub_M が CVE レコードを公開。CVSS 基本値 5.3(警告)。

出典 cvelist · nday が にリアルタイムで観測 · 生データ
{
  "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"
  }
}
ソースに時刻なし、nday が観測
+PAT修正版公開

アドバイザリ記載の修正済みバージョン:terser 4.8.2、terser 5.51.3。修正コミットへのリンクあり。アドバイザリの公開は 。修正版そのもののリリース日時は記録なし。

出典 ghsa GHSA-6jpm-p5cq-9q44 · nday が にリアルタイムで観測 · 生データ
{
  "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.

研究者の投稿

過去 7 日間に 0 人の研究者が言及

リストの研究者が X でこの CVE に触れた投稿です。原文のまま表示し、nday は検証していません。

リストの研究者が X でこの CVE に触れた投稿は、まだ収集していません。

Discussion

0 comments

No comments yet.