Advisory record · GHSA-3prj-6hqw-cm82

PHP JWT Library: PBES2-HS*+A*KW unwrap accepts an unbounded p2c iteration count, enabling CPU-amplification denial of service

CVSS 4.0, no score published

Published by the GitHub Advisory Database at 18 Jun 2026, 21:09 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
web-token/jwt-libraryPackagist<3.4.10 || >=4.0.0, <4.0.7 || >=4.1.0, <4.1.73.4.10, 4.0.7, 4.1.7
web-token/jwt-frameworkPackagist<3.4.10 || >=4.0.0, <4.0.7 || >=4.1.0, <4.1.73.4.10, 4.0.7, 4.1.7
Identifiers
GHSA-3prj-6hqw-cm82
Weakness (CWE)
CWE-400 · CWE-770
Published
18 Jun 2026
Updated
15 Jul 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

GHSA-3prj-6hqw-cm82 affects the PHP packages web-token/jwt-library and web-token/jwt-framework at versions before 3.4.10, from 4.0.0 before 4.0.7, and from 4.1.0 before 4.1.7. When a JWE uses a PBES2 password-based key-encryption algorithm, the unwrap step accepts an unbounded PBKDF2 iteration count from the token header, so an unauthenticated attacker can force heavy CPU use with a single crafted token. Upgrade to 3.4.10, 4.0.7, or 4.1.7. Until then, limit the iteration count with a custom header checker or do not enable PBES2 algorithms for untrusted tokens.

Written 13 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
Not published None 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS No score.

Timeline

  1. 31 Oct 2026, 13:58 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.