React Security
Reports raw-HTML and code-execution sinks, script-running URL schemes, credential-shaped literals, and credential-named values written to logs or browser storage.
React escapes text it renders, so the remaining ways to inject script are the escape hatches: dangerouslySetInnerHTML and direct DOM HTML writes, javascript: URLs, and strings executed as code. This analysis reports each of those, plus credentials written into source, logs or browser storage.
It reads one file at a time and does not follow data between files. Each finding therefore states only what that file shows: a literal dangerous value is reported as a defect, a sink fed by a value of unknown origin is reported as something to check, and a value that is a constant, an import, or visibly sanitized is not reported.
Severity guide
- info
- A sink receives a value whose origin is not visible in this file. Check where it comes from.
- warning
- A raw sink without visible sanitization, or a credential-shaped literal. Real pattern; whether it is exploitable depends on data outside this file.
- critical
- Correct by construction: a literal script-running URL, or a runtime-built string executed as code.
Remediation
Address the flagged pattern; the message field describes the specific instance.
Start with critical findings, which need no further context. For warnings and info findings, trace the value to its source first: a value the application builds itself needs no change.