Skip to main content

hsweb-framework CVE-2026-11477

| EUVDEUVD-2026-35008 LOW
URL Redirection to Untrusted Site (Open Redirect) (CWE-601)
2026-06-08 VulDB GHSA-fxr3-gvm4-m8vc
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed OAuth2 /authorize endpoint
  2. Delivery
    Enumerate or infer registered redirect_uri prefix
  3. Exploit
    Craft authorization URL with prefix-spoofed malicious redirect_uri
  4. Execution
    Deliver phishing link to victim via email or social engineering
  5. Persist
    Victim authenticates and completes OAuth2 flow
  6. Impact
    Framework 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

hsweb-framework 5.0.1
hsweb-framework 5.0.0

Affected Packages

maven org.hswebframework.web:hsweb-authorization-oauth2 no fix
euvd hsweb_framework no fix

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

Vendor (VulDB) PRIMARY 2.1 LOW
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Severity Changed
Jun 08, 2026 - 02:22 NVD
MEDIUM LOW
CVSS changed
Jun 08, 2026 - 02:22 NVD
4.3 (MEDIUM) 2.1 (LOW)

DescriptionCVE.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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Related Vulnerabilities in hsweb-framework Path Traversal and Open Redirect

View all 2

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

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

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy