Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed OAuth2 /authorize endpoint
-
DeliveryEnumerate or infer registered redirect_uri prefix
-
ExploitCraft authorization URL with prefix-spoofed malicious redirect_uri
-
ExecutionDeliver phishing link to victim via email or social engineering
-
PersistVictim authenticates and completes OAuth2 flow
-
ImpactFramework redirects victim to attacker-controlled domain with authorization code in URL
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Redirect URL validation
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that hsweb-framework is deployed with the OAuth2 authorization server module (hsweb-authorization-oauth2) active and that at least one OAuth2 client is registered with a non-empty redirectUrl value. The attacker's malicious redirect_uri must share a string prefix with the registered redirect URL - for example, if the registered URI is https://trusted.example.com, the bypass URI would be https://trusted.example.com.attacker.com or https://trusted.example.com@attacker.com. A victim user must actively click the crafted authorization URL and complete the OAuth2 authentication flow; silent or server-side exploitation is not possible given UI:P in the CVSS 4.0 vector. No attacker authentication is required (PR:N). Deployments that do not expose OAuth2 authorization endpoints, or that have implemented exact-match redirect URI validation through other means, are not affected. |
| Impact | CVSS 4.0 scores this at 2.1, consistent with the limited real-world impact profile. The vector AV:N/AC:L/AT:N/PR:N/UI:P confirms network-reachable exploitation requiring no privileges and no special attack conditions, but mandating passive user interaction - a victim must actively click a crafted OAuth2 authorization link. Impact is confined to VI:L (low integrity) with no confidentiality or availability consequences, and no scope change (SC:N/SI:N/SA:N). The E:P modifier confirms a proof-of-concept exists, which elevates the urgency slightly above an unexploited theoretical issue. No EPSS data was provided; no CISA KEV listing means active exploitation is not confirmed. Despite the public POC, the requirement for user interaction substantially limits mass automated exploitation - this is a phishing-enablement vulnerability, not a silent RCE. The practical risk is highest in deployments where OAuth2 is exposed to end users who may be targeted by phishing campaigns, particularly if authorization codes or tokens appear in redirect URLs. This is a low priority for most enterprise patch cycles but should not be deferred indefinitely given the public POC. |
| Exploit ScenarioDerived | An attacker identifies a hsweb-framework deployment with OAuth2 authorization enabled and determines a registered client's legitimate redirect URI (e.g., https://app.example.com/callback) through OAuth2 client registration enumeration or documentation. The attacker crafts a phishing authorization URL substituting redirect_uri with https://app.example.com.attacker.com/callback, which passes the flawed startsWith() check. A victim user clicks the link, authenticates via OAuth2, and is silently redirected to the attacker's server - potentially exposing the authorization code in the URL, which the attacker exchanges for tokens. A publicly available proof-of-concept demonstrating this bypass exists at https://github.com/hs-web/hsweb-framework/issues/354. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
Open redirect in hs-web hsweb-framework's OAuth2Client component (versions up to 5.0.1) allows remote unauthenticated attackers to redirect victims to attacker-controlled URLs by supplying a crafted redirect_uri during OAuth2 authorization flows. The root cause is a naive prefix-based string comparison using startsWith() in OAuth2Client.java, which trivially allows bypass via domain-prefix spoofing (e.g., registering https://app.example.com.attacker.com when the legitimate URI is https://app.example.com). Publicly available exploit code exists per GitHub issue #354 and CVSS E:P; no public exploit identified at time of analysis in CISA KEV, and the CVSS 4.0 score of 2.1 reflects the limited impact and required user interaction.
RemediationAI
Apply the upstream fix identified as commit c2882679a9125cea52678151af5ae213cbd52579, available via GitHub PR #355 at https://github.com/hs-web/hsweb-framework/pull/355. Note that this is an upstream patch via commit and PR - a specific tagged release version incorporating the fix has not been independently confirmed in the available data, so verify that the next official release from the hs-web repository includes this commit before upgrading. As a compensating control prior to patching, restrict OAuth2 client redirect URIs to the most specific possible registered values and enforce exact-match validation at the application or API gateway level if configurable. Disabling public OAuth2 client registration or OAuth2 authorization endpoints entirely is the most effective temporary mitigation if the feature is not operationally required, though this will break OAuth2-dependent integrations. Implementing a WAF rule to block redirect_uri values that do not exactly match a known allowlist of registered URIs for the /oauth2/authorize endpoint is a lower-disruption workaround, with the trade-off that WAF rule maintenance may lag behind client URI changes.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in OAuth2Client.java within the hsweb-authorization-oauth2 module of hsweb-framework, a Java Spring-based enterprise application development framework (CPE: cpe:2.3:a:hs-web:hsweb-framework:*:*:*:*:*:*:*:*). CWE-601 (URL Redirection to Untrusted Site) describes the root cause: the original redirect URI validation used ObjectUtils.isEmpty() combined with String.startsWith() to compare the supplied redirect_uri against the registered client redirectUrl. This string-prefix approach is fundamentally insecure - any attacker-controlled domain that begins with the registered URI prefix passes validation. The patch (commit c2882679a9125cea52678151af5ae213cbd52579, PR #355) replaces this entirely with a java.net.URI-based parser that validates scheme (case-insensitive), user info, host, port, path, and query parameters independently, rejects URIs containing fragments, normalizes paths before comparison, and introduces two validation modes via OAuth2Properties.RedirectUriValidationMode: COMPATIBLE (allows sub-paths of the registered URI) and EXACT (strict full-match). The fix also addresses a secondary issue in secret validation by replacing ObjectUtils.isEmpty() with StringUtils.hasLength() for improved reliability.
Know when Java gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was detected in hs-web hsweb-framework up to 5.0.1. This affects the function OAuth2Client of the file hsweb-authorization/hsweb-authorization-oauth2/src/main/java/org/hswebframework/web/oauth2/server/OAuth2Client.java of the component OAuth2 Client. The manipulation results in open redirect. The attack can be executed remotely. The exploit is now public and may be used. The patch is identified as c2882679a9125cea52678151af5ae213cbd52579. Applying a patch is advised to resolve this issue.
Blast Radius
ecosystem impact- 1 maven packages depend on org.hswebframework.web:hsweb-authorization-oauth2 (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 5.0.1.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Related Vulnerabilities in hsweb-framework Path Traversal and Open Redirect
View all 2Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
EUVD-2026-35008
GHSA-fxr3-gvm4-m8vc
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB