Cyber Posture

CWE · MITRE source

CWE-540Inclusion of Sensitive Information in Source Code

Abstraction: Base · CVEs in our corpus: 29

Source code on a web server or repository often contains sensitive information and should generally not be accessible to users.

There are situations where it is critical to remove source code from an area or server. For example, obtaining Perl 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.

Last updated: 09 May 2026 03:25 UTC

NIST 800-53 r5 controls that address this weakness (3)AI

Control Title Family Why it addresses this CWE
IR-9Information Spillage ResponseIRDetection and removal of spilled information addresses cases where sensitive data was included in source code.
SA-21Developer ScreeningSAScreening helps prevent intentional insertion of sensitive information into source code by untrusted developers.
SC-38Operations SecuritySCPrevents inclusion of sensitive information in source code and development artifacts through SDLC-wide OPSEC controls.

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2025-260131.78.20.00262025-02-21
CVE-2021-288051.67.80.00052021-06-11
CVE-2023-392501.67.80.00052023-08-16
CVE-2024-12721.57.50.00172024-06-05
CVE-2024-386471.57.50.00302024-11-22
CVE-2025-491821.57.50.00472025-06-12
CVE-2026-41551.57.50.00382026-04-11
CVE-2021-346381.46.50.01362021-08-05
CVE-2024-383271.46.80.00192025-07-10
CVE-2026-353831.36.50.00052026-04-02
CVE-2023-234481.15.30.00182023-05-15
CVE-2023-308021.15.30.00132023-10-10
CVE-2024-22651.15.30.00102024-03-07
CVE-2024-351441.15.30.00142025-01-25
CVE-2025-09231.15.30.00222025-06-11
CVE-2021-347441.04.90.00302021-10-06
CVE-2021-347571.04.90.00172021-10-06
CVE-2021-15160.94.30.00312021-05-06
CVE-2024-397290.94.30.00082024-07-15
CVE-2024-272570.94.30.00122024-09-10
CVE-2025-362990.94.30.00032025-11-17
CVE-2026-222750.94.40.00012026-01-23
CVE-2024-23550.73.70.00112024-03-10
CVE-2024-95960.73.70.00132024-10-10
CVE-2024-84170.63.10.00132024-09-04