web/react

Free catalog · v0.0.26

Reviews React source for raw HTML injection, opener attacks, and dynamic code execution.

Checks

RuleSeverityScans for
react.stale-layout-measurementMediumMount-only layout state for prop-derived HTML; changes to either the effect or measured JSX qualify
react.client-env-secretHighSecret-shaped values referenced through client-exposed env vars
react.dynamic-evalHighDynamic code evaluation from non-literal input in client code
react.href-user-inputMediumUser-influenced values in href / src navigation attributes without protocol validation
react.raw-href-handler-guardHighA dynamic anchor href remains raw while its click handler treats URL validation as the security boundary
react.reverse-tabnabbingLowtarget="_blank" links without rel="noopener noreferrer"
react.token-in-localstorageMediumAuth tokens/session credentials stored in localStorage/sessionStorage
react.unsafe-htmlHighHTML injected into the DOM from non-literal input

Reactive layout measurements

Report a component-local mount-only effect that sets state from a ref measurement while the same element renders prop-derived HTML. Require imported React hooks and matching ref/state ownership. Skip observed/timer-driven layouts and keyed elements; do not demand dependencies on arbitrary effects.

More from the registry