Secret Leakage
Sensitive keys, passwords, or tokens ending up where unauthorized people can find them.
What it is
Secret leakage is the exposure of sensitive credentials such as API keys, passwords, or tokens in places they should never appear, such as source code, public files, logs, or responses. Once exposed, a secret can be used by anyone who finds it. Secrets often leak through code repositories, front-end files, and error output.
Why it matters
A single leaked secret can grant an attacker direct access to systems, data, or paid services, and simply deleting it is not enough once it has been exposed.
How to fix it
Keep secrets out of code and client-side files, store them in a dedicated secret manager, and if one leaks, rotate it immediately rather than only removing it.