Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @sigstore/core
  4. ›
  5. CVE-2026-48758

CVE-2026-48758: @sigstore/core has DSSE payloadType type-binding failure

June 26, 2026

The preAuthEncoding function in @sigstore/core uses Node.js 'ascii' encoding when converting the PAE (Pre-Authentication Encoding) string to bytes. This allows payloadType to be mutated after signing without invalidating the signature, breaking the type-binding guarantee that DSSE is designed to provide.

In packages/core/src/dsse.ts, the PAE function builds a string containing payloadType and then encodes it with Buffer.from(prefix, 'ascii').

In Node.js, 'ascii' encoding for string-to-Buffer is equivalent to 'latin1', which truncates characters above U+00FF to their low byte. This means for any ASCII character, there exist Unicode characters (at U+01xx, U+02xx, etc.) that produce the identical encoded byte:

OriginalCodepointMutantCodepointEncoded byte
tU+0074ŴU+01740x74
eU+0065ťU+01650x65

An attacker can substitute every character in payloadType with a Unicode variant whose low byte matches, producing identical PAE bytes and a passing signature verification.

Additionally, payloadType.length returns the JavaScript string length (UTF-16 code units) rather than the UTF-8 byte length required by the DSSE spec, though this is only a contributing factor for non-ASCII types.

References

  • github.com/advisories/GHSA-jfc7-64v2-mr8c
  • github.com/sigstore/sigstore-js/security/advisories/GHSA-jfc7-64v2-mr8c
  • nvd.nist.gov/vuln/detail/CVE-2026-48758

Code Behaviors & Features

Detect and mitigate CVE-2026-48758 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.2.1

Fixed versions

  • 3.2.1

Solution

Upgrade to version 3.2.1 or above.

Impact 5.4 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-347: Improper Verification of Cryptographic Signature

Source file

npm/@sigstore/core/CVE-2026-48758.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 27 Jun 2026 12:17:05 +0000.