Use of Hard-coded Credentials
| Property | |
|---|---|
| Language | regex |
| Severity | |
| CWE | CWE-798: Use of Hard-coded Credentials |
| OWASP | A07:2021 - Identification and Authentication Failures |
| Confidence Level | Low |
| Impact Level | Medium |
| Likelihood Level | Low |
Description#
An npm access token has been found hard-coded in the source code. Storing credentials directly in code exposes them to anyone with code access, making it easy for secrets to be unintentionally leaked.
Impact#
If an attacker obtains this token, they could gain unauthorized access to your npm account—potentially publishing, modifying, or deleting packages. This can lead to supply chain attacks, data breaches, or loss of trust in your software.