Z205 Forbidden Scheme
Z205 Forbidden Scheme¶
Severity: security_incident | Exit code: 3 | Suppressible: False
Z205 is triggered when a critical forbidden scheme like javascript: or data: is detected in an href or src attribute.
Why it matters¶
These schemes introduce severe XSS (Cross-Site Scripting) vulnerabilities. Allowing javascript: in documentation links can lead to arbitrary code execution when clicked by readers.
This code is strictly NON-SUPPRESSIBLE.
Attempting to suppress it using data-zenzic-ignore will fail. The security gate evaluates this rule before any suppression context is parsed.
Remediation¶
- Remove the
javascript:ordata:URL entirely. - Refactor the documentation example to use plain text or safe standard HTTP schemas.