CVE-2026-42073: Oauth Csrf State Bypass Via Error

The application handles the OAuth `error` response from the callback URL before validating the `state` parameter against the expected session value. By submitting a crafted request with an `error` parameter, an attacker can bypass the state check, tricking the service into prematurely rejecting the flow and terminating it. Validate the `state` parameter unco

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-42073-oauth-csrf-state-bypass-via-error --engine opengrep

Description

The application handles the OAuth `error` response from the callback URL before validating the `state` parameter against the expected session value. By submitting a crafted request with an `error` parameter, an attacker can bypass the state check, tricking the service into prematurely rejecting the flow and terminating it. Validate the `state` parameter unco