Security Resilience

CWE · MITRE source

CWE-540Inclusion of Sensitive Information in Source Code

Abstraction: Base · CVEs in our corpus: 37

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: 14 October 2026 20:41 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 PROPOSED for this weakness (3)AI-assisted

These are model PROPOSALS, not graded mappings. They come from controls_to_cwe_proposals, which carries no grade field at all; across the CWE pages 1,540 of 1,722 such associations (89%) have never been graded by anything. The heading said “address” until 2026-09-29, which asserted a relationship the data does not carry. Graded cross-walks are on the framework map, not here.

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-2026-843907.39.80.00522026-09-11
CVE-2025-26013 6.28.20.00422025-02-21
CVE-2024-38647 5.97.50.00652024-11-22
CVE-2025-49182 5.97.50.00552025-06-12
CVE-2026-4155 5.97.50.00682026-04-11
CVE-2024-1272 5.87.50.00392024-06-05
CVE-2026-45728 5.87.50.00422026-05-26
CVE-2021-28805 5.77.80.00242021-06-11
CVE-2026-735915.77.50.00262026-09-23
CVE-2023-39250 5.67.80.00132023-08-16
CVE-2026-1030965.67.50.00152026-10-02
CVE-2026-1030975.67.50.00152026-10-02
CVE-2021-34638 5.46.50.01332021-08-05
CVE-2026-35383 5.26.50.00482026-04-02
CVE-2024-38327 5.16.80.00332025-07-10
CVE-2023-23448 4.65.30.00792023-05-15
CVE-2023-30802 4.65.30.00812023-10-10
CVE-2024-2265 4.65.30.00832024-03-07
CVE-2024-35144 4.45.30.00312025-01-25
CVE-2025-0923 4.45.30.00282025-06-11
CVE-2026-165814.45.30.00382026-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.01002021-05-06
CVE-2024-39729 3.74.30.00412024-07-15