{"answers":{"affected":"6 open source packages ship an affected version, including web-token/jwt-library.","exploited":"There is no known exploitation of GHSA-5739-39v2-5754 in the wild and no public exploit code.","fix":"Upgrade web-token/jwt-library to a fixed version for your release line: 3.4.10, 4.0.7 or 4.1.7.","what":"GHSA-5739-39v2-5754 is a vulnerability in web-token/jwt-library, published on 18 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-5739-39v2-5754 and fix it if it is affected.\n\nWhat it is: GHSA-5739-39v2-5754 is a vulnerability in web-token/jwt-library, published on 18 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-5739-39v2-5754 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- web-token/jwt-library (Packagist): affected all versions; fixed in 3.4.10\n- web-token/jwt-library (Packagist): affected all versions; fixed in 3.4.10\n- web-token/jwt-library (Packagist): affected from 4.0.0; fixed in 4.0.7\n- web-token/jwt-library (Packagist): affected from 4.0.0; fixed in 4.0.7\n- web-token/jwt-library (Packagist): affected from 4.1.0; fixed in 4.1.7\n- web-token/jwt-library (Packagist): affected from 4.1.0; fixed in 4.1.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-5739-39v2-5754/ (Markdown: https://insights.sbomify.com/GHSA-5739-39v2-5754/index.md)","id":"GHSA-5739-39v2-5754","markdown":"https://insights.sbomify.com/GHSA-5739-39v2-5754/index.md","name":"GHSA-5739-39v2-5754","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"PHP JWT library","requires_auth":"none","summary":"A timing side-channel in RSA1_5 decryption allows attackers to recover the content encryption key via a padding oracle attack.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\n`RSACrypt::decryptWithRSA15()` (used by the `RSA1_5` key-encryption algorithm) implements RSAES-PKCS1-v1_5 decryption by inspecting the padding after RSADP and throwing `InvalidArgumentException` as soon as the padding is malformed. It does **not** implement the implicit-rejection countermeasure required by RFC 3447 §7.2.2 / RFC 8017 §7.1.2 (return a deterministic pseudo-random value of the expected length on padding failure and let the downstream step fail uniformly).\n\nFrom a JWE caller this yields a Bleichenbacher/Marvin padding oracle: an attacker submitting adaptively crafted `encrypted_key` values can distinguish (a) padding rejected, (b) padding valid but wrong CEK length, and (c) padding valid and full AEAD executed — even though `JWEDecrypter` returns the same `false` in all cases — because each path performs a measurably different amount of work, amplifiable by enlarging the ciphertext (CWE-208 timing side channel). Enough adaptive queries can recover the wrapped CEK.\n\n### Affected configurations\n\nApplications that register `RSA1_5` in their decryption `AlgorithmManager` and hold an RSA private key.\n\n### Patches\n\nPKCS#1 v1.5 decryption now performs implicit rejection: on invalid padding (or unexpected recovered length) it returns a random CEK of the expected size selected in constant time, so the full content-decryption (AEAD) step always runs and fails uniformly, removing the observable difference between padding-valid and padding-invalid ciphertexts. Users are still strongly encouraged to migrate to `RSA-OAEP`.\n\n### Workarounds\n\nPrefer `RSA-OAEP`/`RSA-OAEP-256`; do not enable `RSA1_5` for untrusted tokens.\n\n### References\n\n- RFC 3447 §7.2.2 / RFC 8017 §7.1.2\n- Bleichenbacher (1998); Marvin attack\n- CWE-208: Observable Timing Discrepancy\n\n## Résolution\n\nUn correctif a été préparé sur une branche dédiée basée sur `3.4.x`, avec des tests anti-régression dédiés (fork privé temporaire de cette advisory, PR #1).\n\n**RSA1_5** — déchiffrement PKCS#1 v1.5 avec *implicit rejection* en temps constant (RFC 3447 §7.2.2) : un padding invalide n'est plus distinguable d'un padding valide, neutralisant l'oracle Bleichenbacher.\n\n**Validation :** `php -l` OK, PHPUnit vert, aucune nouvelle erreur PHPStan introduite (différentiel nul vs `3.4.x`), aucun commentaire ajouté dans le code source. Après merge, cascade prévue `3.4.x → 4.0.x → 4.1.x`.","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Impact `RSACrypt::decryptWithRSA15()` (used by the `RSA1_5` key-encryption algorithm) implements RSAES-PKCS1-v1_5 decryption by inspecti","id":"GHSA-5739-39v2-5754","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"weak_cryptography","year":"2026"},"n_packages":6,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["3.4.10"],"introduced":["0"],"last_affected":[],"package":"web-token/jwt-library","purl":null,"source":"GHSA-5739-39v2-5754"},{"ecosystem":"Packagist","fixed":["3.4.10"],"introduced":["0"],"last_affected":[],"package":"web-token/jwt-library","purl":"pkg:composer/web-token/jwt-library","source":"GHSA-5739-39v2-5754"},{"ecosystem":"Packagist","fixed":["4.0.7"],"introduced":["4.0.0"],"last_affected":[],"package":"web-token/jwt-library","purl":null,"source":"GHSA-5739-39v2-5754"},{"ecosystem":"Packagist","fixed":["4.0.7"],"introduced":["4.0.0"],"last_affected":[],"package":"web-token/jwt-library","purl":"pkg:composer/web-token/jwt-library","source":"GHSA-5739-39v2-5754"},{"ecosystem":"Packagist","fixed":["4.1.7"],"introduced":["4.1.0"],"last_affected":[],"package":"web-token/jwt-library","purl":null,"source":"GHSA-5739-39v2-5754"},{"ecosystem":"Packagist","fixed":["4.1.7"],"introduced":["4.1.0"],"last_affected":[],"package":"web-token/jwt-library","purl":"pkg:composer/web-token/jwt-library","source":"GHSA-5739-39v2-5754"}],"products":null,"published":"2026-06-18","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A timing side-channel in RSA1_5 decryption allows attackers to recover the content encryption key via a padding oracle attack.","url":"https://insights.sbomify.com/GHSA-5739-39v2-5754/"}