/

CVE-2026-128049

Severity:

CRITICAL RISK

(9.0)

Cross-Site Request Forgery (CWE-352) in OpenMage OAuth

CVE-2026-128049

Deferred

Vulnerability type

Category:

Cross-Site Request Forgery (CSRF)

CWE:

CWE-352

Impact:

Unauthorized OAuth authorization and persistent REST API access

Severity:

CRITICAL RISK

(9.0)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

OpenMage's OAuth confirmation actions may accept GET requests without validating a form key, allowing a cross-site request forgery attack. If an attacker has OAuth consumer credentials and can lure a logged-in administrator or customer to a crafted confirmation URL, the victim may authorize the attacker's request token, which can then be exchanged for a persistent REST API access token.

Affected context

The issue affects OpenMage Magento LTS releases before 20.18.2 and 21.0.0-beta1 releases before 21.0.0-beta3. It occurs in the admin and storefront OAuth confirm and confirmSimple actions when they accept GET requests without form-key validation.

Exploit preconditions

  • Attack surface: Admin or storefront OAuth confirmation endpoints
  • Required access: The attacker needs OAuth consumer credentials; the victim must be logged in when visiting the crafted URL
  • Trigger point: The victim's browser sends a GET request to a confirmation action
  • Why exploitation is possible: The action can authorize the attacker's request token without validating a form key or equivalent CSRF protection

Why this happens

The confirmation actions perform a security-sensitive state change through GET requests without checking a CSRF token. Because a browser may send such a request in the context of an authenticated session, an attacker can potentially cause a victim to authorize an OAuth request token. This is CWE-352: Cross-Site Request Forgery.

Potential impact

  • An attacker could obtain a persistent REST API access token associated with the victim
  • The token may allow unauthorized API actions within the victim's granted permissions
  • Depending on the victim's role and account access, sensitive data could be exposed or modified

General mitigation guidance

Defensive patterns focus on protecting state-changing OAuth actions and limiting the authority of issued tokens:

  • Require POST for authorization actions that change state, and validate a session-bound CSRF token
  • Use secure-by-default request handling that rejects state changes through GET
  • Bind OAuth authorization to the intended consumer, request token, session, and explicit user consent
  • Apply least-privilege scopes and appropriate expiration or revocation controls to access tokens
  • Treat browser-originated requests as untrusted unless the required authorization checks pass

How teams detect issues like this

  • Use static analysis to identify state-changing handlers reachable through GET and missing CSRF validation
  • Review OAuth confirmation flows for form-key checks, session binding, and explicit consent enforcement
  • Test that cross-origin requests cannot authorize request tokens in authenticated sessions
  • Apply security policies that require CSRF protection for browser-accessible state changes
  • Automated code review tools may help flag unsafe HTTP method handling and missing request validation

Sources

SourceLink
github.comgithub.com/OpenMage/magento-lts/commit/1f83e49b60e08aa7ba89dcc2d41ea21f62c0b796
github.comgithub.com/OpenMage/magento-lts/security/advisories/GHSA-grrq-9gq2-vm55
vulncheck.comvulncheck.com/advisories/openmage-magento-lts-before-20.18.2-csrf-via-oauth-authorization-confirm

Frequently asked

questions

A logged-in administrator or customer may be affected if they visit a crafted confirmation URL while their session is active.

The attacker needs OAuth consumer credentials and a way to direct a logged-in victim to the vulnerable confirmation action.

Require a state-changing request method and validate a session-bound CSRF token before authorizing an OAuth request token.

Protect all browser-accessible state changes with CSRF defenses, bind authorization to the intended session and consumer, and limit token permissions and lifetime.

Find out what's already
exploitable in your codebase.