[CRITICAL] Fix XSS vulnerability in WikiLinkRenderer #191
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
WikiLinkRenderer uses dangerouslySetInnerHTML on arbitrary HTML with only wiki-link text escaped. If knowledge entry HTML is user-generated and not sanitized server-side, this is a direct XSS vulnerability.
Location
apps/web/components/WikiLinkRenderer.tsx
Attack Vector
If knowledge entries contain user HTML:
Impact
Questions (URGENT - Need Answers)
Acceptance Criteria
Implementation
Option 1: Server-side only (preferred)
Option 2: Defense-in-depth
Testing
References
External security review findings (2026-02-02)