Improper Encoding or Escaping of Output Affecting get-jwks package, versions <11.0.2


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.08% (25th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-GETJWKS-13110083
  • published29 Sept 2025
  • disclosed27 Sept 2025
  • creditSagi epureionut99

Introduced: 27 Sep 2025

CVE-2025-59936  (opens in a new tab)
CWE-116  (opens in a new tab)

How to fix?

Upgrade get-jwks to version 11.0.2 or higher.

Overview

get-jwks is a Fetch utils for JWKS keys

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output via the JWKS cache process. An attacker can bypass issuer validation by poisoning the cache with keys from an unexpected issuer and subsequently leveraging the cached key to pass signature validation for a targeted issuer value. This is only exploitable if issuer validation is performed after retrieving keys using the affected process.

References

CVSS Base Scores

version 4.0
version 3.1