- Analyzer
- textscan
- Category
- Injection
- Default severity
- HIGH
- CWE
- CWE-22
- Execution
- Passive
- Authentication
- Not required
- Applicability
- java
- Availability
- stable
What it detects
Path traversal: filesystem path built from a request parameter: an injection check run by the textscan analyzer.
Evidence
The matching source path, line, and bounded code observation produced by the native rule.
Remediation
Resolve the path against a fixed base directory and verify it stays within it (canonical path + prefix check), or map the request value to an allowlisted file; never pass it straight to a file API.
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
Remediation guidance: Remediation and fix verification · Baselines and suppressions