Story

In the news · 1 source · first seen 25d ago · Full Disclosure
Apache Struts2 Core Cross-Origin Protection Exemption Miskeyed to a Deployment-Wide Path

Posted by Daniel Owens via Fulldisclosure on Nov 01 Description Apache Struts2 Core version 7.4.0 and below's `FetchMetadataInterceptor`, `CoepInterceptor`, and `CoopInterceptor` each compare their `exemptedPaths` configuration -- a per-interceptor-reference, administrator-supplied set of paths inte

Briefing

Written from the coverage below · deepseek-v4.1-flash

Apache Struts2 Core 7.4.0 and below compares FetchMetadataInterceptor, CoepInterceptor and CoopInterceptor exemptedPaths against HttpServletRequest.getContextPath(), which is fixed for the whole deployment. The miskeyed comparison means configured path exemptions apply deployment-wide rather than per action, weakening the intended cross-origin protections.

Why it mattersOrganizations relying on Struts path exemptions may have cross-origin protections silently disabled across far more actions than intended. Review whether CSRF-relevant protections apply to exposed endpoints.

ActionReview and correct exemptedPaths in every Struts interceptor reference to use the correct context-relative path, or upgrade when a fix is released.

Coverage

1 article