Summary
CVE-2026-18661 is an incorrect authorization vulnerability (CWE-863) in the annotation-processing modules of Eclipse Jetty. When @ServletSecurity annotations are combined with web.xml security constraints, Jetty does not apply the Jakarta Specification’s authoritative rules, so protected paths can be reachable without the intended restrictions. It is rated High (score 8.8).
Technical details
- Root cause: the Jakarta Spec rules for url-pattern security constraints are not applied correctly when
@ServletSecurityand aweb.xmlsecurity-constraintare mixed. - Trigger conditions:
web.xmlmaps a servlet to more than oneurl-pattern, and thesecurity-constraintcovers only some of those patterns. Jetty then suppresses the annotation-based security rules across all of the servlet’s mappings. - Attack vector: network, low complexity, no privileges or user interaction required.
- Impact: authorization bypass. The CVSS vector rates confidentiality impact High and integrity impact Low.
- The issue is in
jetty-annotationsand thejetty-eeN-annotationsmodules, so only deployments that use annotation scanning are relevant.
Affected software
jetty-annotations9.4.0–9.4.64, 10.0.0–10.0.32, 11.0.0–11.0.32jetty-ee8-annotations,jetty-ee9-annotations,jetty-ee10-annotations: 12.0.0–12.0.38 and 12.1.0–12.1.11jetty-ee11-annotations: 12.1.0–12.1.11
Severity
CVSS base score 8.8 (High). The CVE record publishes the vector in CVSS v4.0 format: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N. A CVSS v3.1 vector was not found in the sources reviewed.
Mitigation and recommended actions
- Immediate: upgrade to a Jetty release later than the affected ranges above (later than 12.0.38 on the 12.0 line, later than 12.1.11 on the 12.1 line). The CVE record does not list explicit fixed version numbers, so confirm the exact patched release in the Jetty project advisory GHSA-v6xf-996f-c35f.
- Jetty 9.4, 10 and 11 are end-of-life and may not receive official patches. Move those deployments to a supported Jetty 12 release.
- Workarounds: the CVE record documents none. Review servlets that have multiple
url-patternentries and mix@ServletSecuritywithweb.xmlconstraints, and use a single consistent method of defining security constraints. This is a general hardening step, not an official vendor workaround.

