Cyber Resilience

CWE · MITRE source

CWE-540Inclusion of Sensitive Information in Source Code

Abstraction: Base · CVEs in our corpus: 31

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: 20 August 2026 14:15 UTC

OWASP Top 10 for Web (2025)

This weakness contributes to A01:2025 Broken Access Control.

Control responseHuman-reviewed

Answering this weakness across the control lifecycle, from our framework cross-walks.

Prevent
Stop it (NIST 800-53 / CSF Protect)
  • IR-9 Information Spillage Response
  • SA-21 Developer Screening
  • SC-38 Operations Security
  • PR.PS-06
Detect
Catch it (CSF Detect / Respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)

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

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-26013 6.28.20.00402025-02-21
CVE-2024-38647 5.97.50.00642024-11-22
CVE-2025-49182 5.97.50.00492025-06-12
CVE-2026-4155 5.97.50.00572026-04-11
CVE-2024-1272 5.87.50.00392024-06-05
CVE-2026-45728 5.87.50.00302026-05-26
CVE-2021-28805 5.77.80.00242021-06-11
CVE-2023-39250 5.67.80.00132023-08-16
CVE-2021-34638 5.46.50.01332021-08-05
CVE-2024-38327 5.16.80.00282025-07-10
CVE-2026-35383 5.16.50.00282026-04-02
CVE-2023-23448 4.65.30.00792023-05-15
CVE-2024-2265 4.65.30.00832024-03-07
CVE-2023-30802 4.55.30.00652023-10-10
CVE-2024-35144 4.45.30.00312025-01-25
CVE-2025-0923 4.35.30.00242025-06-11
CVE-2026-165814.35.30.00222026-07-28
CVE-2021-34744 4.14.90.00752021-10-06
CVE-2021-34757 4.14.90.00622021-10-06
CVE-2021-1516 3.94.30.01162021-05-06
CVE-2024-39729 3.74.30.00412024-07-15
CVE-2024-272573.64.30.00302024-09-10
CVE-2025-362993.54.30.00212025-11-17
CVE-2024-2355 3.43.70.00642024-03-10
CVE-2026-22275 3.44.40.00132026-01-23