- Analyzer
- textscan
- Category
- XSS
- Default severity
- HIGH
- CWE
- CWE-79
- Execution
- Passive
- Authentication
- Not required
- Applicability
- javascript, typescript
- Availability
- stable
What it detects
innerHTML assigned from a non-literal expression: a xss check run by the textscan analyzer.
Evidence
The matching source path, line, and bounded code observation produced by the native rule.
Remediation
Use textContent (sanitises automatically) or sanitise input through DOMPurify before assignment.
Limitations
This check is limited to the applicability and evidence delivered by textscan. Review the evidence in context; a match is a finding input, while confidence and policy determine its disposition.
Related reference
Analyzer Registry · Findings and release decisions · Policy and confidence
Checks sharing a CWE
Remediation guidance: Remediation and fix verification · Baselines and suppressions
Other xss checks