security.privacy

Avoid sensitive data in thrown errors

Exceptions and rejection payloads should not include raw secrets or personal data.

#Metadata

#Why it matters

Exception payloads often reach logs, APM tools, and client responses with less review than normal business data.

#Remediation

Replace raw secrets and personal data with opaque identifiers or redacted summaries before throwing or rejecting.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.security.sensitive-data-in-exception.rule.yaml.