CWE•Base•Incomplete•13 recent CVEs
CWE-540Inclusion of Sensitive Information in Source Code
Description
The product (such as a web server or repository) provides access to source code is not intended to be accessible to users but contains sensitive information.
Common consequences
- Confidentiality→Read Application Data,Varies by ContextObtaining source code on a system allows an attacker to understand the logic of the script and extract extremely useful information such as code bugs or logins and passwords.
Potential mitigations
- Architecture and Design,System ConfigurationRecommendations include removing the script from the web server and moving it to a location not accessible from the Internet.
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-1030977.52026-10-02CVE-2026-1030967.52026-10-02CVE-2026-1012653.12026-09-29CVE-2026-735917.52026-09-23CVE-2025-360764.32026-09-18CVE-2026-843909.82026-09-11CVE-2026-165815.32026-07-28CVE-2026-457287.52026-05-26CVE-2026-41557.52026-04-11CVE-2026-353836.52026-04-02CVE-2025-362994.32025-11-17CVE-2024-12727.52024-06-05CVE-2023-234485.32023-05-15