CVE-2026-117517

URL Redirect/Open Redirect
Affects
Apache Tomcat
in
Apache Tomcat
No items found.
Versions
>=9.0.116 <=9.0.123, >=10.1.53 <=10.1.61, >=11.0.19 <=11.0.27

Patch Available.

Exclamation circle icon
Patch Available

This Vulnerability has been fixed in the Never-Ending Support (NES) version offered by HeroDevs.

Overview

Apache Tomcat is an open-source implementation of the Jakarta Servlet, Jakarta Pages, Jakarta Expression Language, Jakarta WebSocket, Jakarta Annotations, and Jakarta Authentication specifications. It serves Java web applications either as a standalone servlet container and HTTP server or embedded inside an application through the tomcat-embed-core artifact. Its Catalina servlet container (org.apache.tomcat:tomcat-catalina) supplies the request-processing pipeline, including Valves such as RewriteValve, along with connectors, realms, and session management.

An open redirect vulnerability (CVE-2026-117517) has been identified in the LoadBalancerDrainingValve of Apache Tomcat, which allows attackers to make the valve's draining redirect send users to an attacker-chosen host. The issue exists because the fix for CVE-2026-25854 was incomplete.

Per OWASP: Unvalidated redirects and forwards are possible when a web application accepts untrusted input that could cause the web application to redirect the request to a URL contained within untrusted input. By modifying untrusted URL input to a malicious site, an attacker may successfully launch a phishing scam and steal user credentials.

This issue affects multiple versions of Apache Tomcat.

Details

Module Info

Vulnerability Info

This Low-severity vulnerability is found in the org.apache.tomcat:tomcat-catalina and org.apache.tomcat.embed:tomcat-embed-core packages in multiple versions of Apache Tomcat.

LoadBalancerDrainingValve is used with mod_jk load balancing. When a request arrives on a worker that is being drained (the JK_LB_ACTIVATION request attribute is DIS) and the client has no valid session, the valve expires any session cookie it received and redirects the client back to the requested URI with a Location header. To keep that header a relative path, the valve collapses repeated leading slashes. In affected versions it does so before it removes the ;jsessionid path parameter from the URI:

String uri = collapseLeadingSlashes(request.getRequestURI());

// Re-write the URI if it contains a ;jsessionid parameter
String sessionURIParamName = SessionConfig.getSessionUriParamName(request.getContext());
if (uri.contains(";" + sessionURIParamName + "=")) {
    uri = uri.replaceFirst(";" + sessionURIParamName + "=[^;/]*", "");
}

String queryString = request.getQueryString();

if (null != queryString) {
    uri = uri + "?" + queryString;
}

// NOTE: Do not call response.encodeRedirectURL or the bad
// sessionid will be restored
response.sendRedirect(uri, _redirectStatusCode);

An attacker can place the path parameter between two slashes, for example /;jsessionid=x/attacker.example/. That URI has only one leading slash, so collapseLeadingSlashes() leaves it unchanged. Removing ;jsessionid=x then joins the two slashes and produces //attacker.example/. Browsers treat a Location value that starts with // as a protocol-relative URL, so a victim who follows a crafted link to a draining node is redirected to the attacker's host.

Mitigation

Only recent versions of Apache Tomcat are community-supported. The community support version will not receive any updates to address this issue. For more information, see here.

Users of the affected components should apply one of the following mitigations:

  • Upgrade to a patched version of Apache Tomcat.
  • Leverage a commercial support partner like HeroDevs for post-EOL security support.

Credits

  • Yanbing Chen from Zhejiang Sci-Tech University (finder)
Vulnerability Details
Severity
Level
CVSS Assessment
Low
>=0 <4
Medium
>=4 <6
High
>=6 <8
Critical
>=8 <10
Low
ID
CVE-2026-117517
PROJECT Affected
Apache Tomcat
Versions Affected
>=9.0.116 <=9.0.123, >=10.1.53 <=10.1.61, >=11.0.19 <=11.0.27
NES Versions Affected
Published date
November 20, 2026
≈ Fix date
Category
URL Redirect/Open Redirect
Vex Document
Download VEXHow do I use it?
Sign up for the latest vulnerability alerts fixed in
NES for Apache Tomcat
Rss feed icon
Subscribe via RSS
or

By submitting the form I acknowledge receipt of our Privacy Policy.

Thanks for signing up for our Newsletter! We look forward to connecting with you.
Oops! Something went wrong while submitting the form.