What it flags
Request data written into application-wide state without validation: Expressapp.locals (also through req.app.locals or res.app.locals), directly, by element or through Object.assign, and Koa ctx.app.context. Every later request and every rendered view reads that state as trusted, so one caller’s input reaches all users (CWE-501).
Values that pass an anchored allowlist (a regular expression test or a schema pattern) or are coerced to numbers stay quiet. Per-request state (res.locals) and per-user stores such as the session are not reported: storing the caller’s own input there is routine.
How to review or fix
Validate the value against an allowlist before storing it, or keep it in per-request or per-user state.Configuration
Set the rule to"off" in loadwise.config.json to drop its findings: