CVE-2026-54430

Server-Site Request Forgery in liboauth2

Published Jul 2, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
liboauth2 is vulnerable to Server-Side Request Forgery in oauth2_jose_jwks_aws_alb_resolve() function. The AWS ALB verifier reads both signer and kid from the unverified JWT
header. If signer matches the configured ARN, kid is appended to
alb_base_url without URL encoding or path sanitization, and the HTTP GET
is issued before signature verification. This allows an attacker to force
the server to send a GET request to an attacker-chosen internal path.

This issue was fixed in version 2.3.0

Analysis

AI-generated

Technical impact

The liboauth2 library processes JSON Web Tokens for AWS ALB authentication. In a key verification routine, the function oauth2_jose_jwks_aws_alb_resolve reads the kid value from an unverified JWT header. When the signer matches the configured ARN, the kid is appended directly to the configured ALB base URL without URL‑encoding or sanitizing the path before performing an HTTP GET. This allows an attacker who can supply a JWT header with a malicious kid to force the server to issue an outbound request to an arbitrary internal path or host. The resulting Server‑Side Request Forgery can expose internal services, leak sensitive data, or facilitate lateral movement within the network. Based on the description, it is inferred that the likely attack vector is sending a crafted JWT with a malicious kid header to the server’s token verification endpoint.

Affected Systems

All installations of OpenIDC's liboauth2 with a version older than 2.3.0 are vulnerable. This includes any application, service, or system that links to or embeds the vulnerable library, particularly those that expose token‑handling interfaces to client input.

Risk and Exploitability

The CVSS score of 5.1 reflects moderate severity, and the EPSS score of less than 1% indicates a low probability of exploitation in the near term. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires an attacker to control the JWT input to the server; once processed, the server makes the outbound GET before signature verification. While no public exploits are reported, the SSRF could potentially expose sensitive internal resources or serve as a foothold for further attacks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade liboauth2 to version 2.3.0 or later, which adds URL‑encoding and path‑sanitization for the kid field.
  • If an upgrade is not immediately possible, validate or sanitize the kid value in incoming JWTs to reject characters that could manipulate the request path.
  • Restrict the service’s outbound traffic to only required IP ranges or subnets, and monitor for unexpected outbound GET requests to mitigate potential data exposure.

Generated by OpenCVE AI on August 1, 2026 at 21:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Openidc
Openidc liboauth2
Vendors & Products Openidc
Openidc liboauth2
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
Description liboauth2 is vulnerable to Server-Side Request Forgery in oauth2_jose_jwks_aws_alb_resolve() function. The AWS ALB verifier reads both signer and kid from the unverified JWT header. If signer matches the configured ARN, kid is appended to alb_base_url without URL encoding or path sanitization, and the HTTP GET is issued before signature verification. This allows an attacker to force the server to send a GET request to an attacker-chosen internal path. This issue was fixed in version 2.3.0
Title Server-Site Request Forgery in liboauth2
Weaknesses CWE-918
References
Metrics cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:N/SA:N'}

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
CERT-PL
Published
Updated
Jul 2, 2026, 12:17 PM
Reserved
Jun 15, 2026, 1:08 PM
Status
Deferred
Published
Jul 2, 2026, 11:16 AM
Modified
Oct 25, 2026, 9:10 PM
Severity
Moderate
Public date
Jul 2, 2026, 10:30 AM