DEV Community

Ioneyrezende
Ioneyrezende

Posted on

JSPWiki's Group.jsp Reflected a Crafted URL Into Script

JSPWiki's Group.jsp Reflected a Crafted URL Into Script

CVE-2026-71902 is a cross-site scripting issue in Group.jsp in Apache JSPWiki versions older than 2.12.5. The advisory says a specially crafted URL can cause JavaScript execution. Apache recommends upgrading to 2.12.5.

The bug sits in a page name that administrators, editors, and ordinary users may see as a normal wiki navigation route. A reflected value that reaches HTML without correct context-aware encoding turns a link into an execution path in the victim's browser. The attacker needs a victim to open the crafted URL, but the page can be delivered through chat, email, a ticket, or another document while appearing to belong to the trusted wiki domain.

The impact depends on what the browser session can reach. A JSPWiki account may have edit, page-management, attachment, or administrative privileges. Session cookies marked HttpOnly help against direct cookie theft but do not stop script from issuing same-origin requests with the user's session. A restrictive Content Security Policy can reduce execution, yet it is a mitigation around the defect, not a substitute for output encoding.

Upgrade first, then test the exact authorization paths around group pages. A response code of 200 does not prove the page is safe. Use a browser with a test account and inspect whether payload characters are encoded in the HTML, attribute, URL, and script contexts where the group name is rendered. Search templates and helper functions for direct writes of request parameters into HTML.

Reverse proxies and web application firewalls may block obvious payloads, but reflected XSS is sensitive to encoding and browser parsing differences. A request that passes a signature check can still exploit a missing output context. If an immediate upgrade is impossible, restrict access to trusted users, remove links to the vulnerable route where practical, and add a temporary CSP that disallows inline and untrusted script. Monitor for blocked script violations and for crafted Group.jsp URLs.

JSPWiki is often deployed as a long-lived internal knowledge base. That makes the user population concentrated and valuable. The upgrade should include a review of saved pages and group membership, because a successful browser compromise can use the same UI permissions as its victim.

References

Top comments (0)