Error messages reveal stack traces, queries or internals that help an attacker.
Upgrade and return generic errors to clients; log details server-side only.
Never expose stack traces or internal detail to clients; log them internally instead.
Stateward flags Information Exposure Through an Error Message in your own code and dependencies on every pull request.
Scan my repoSources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.