1. CVE archive
  2. Vulnerability types
  3. CWE-540
CWE-540 · #291 most frequent type in the archive

Inclusion of Sensitive Information in Source Code

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.

Part of: CWE-538 · Insertion of Sensitive Information into Externally-Accessible File or Directory

27CVEs of this type in the archive
3critical (CVSS ≥ 9)
7high severity (7–8.9)
Nov 30, 2026latest published

What it is

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.

Impact on systems

ScopeImpact
Confidentiality Read Application Data, Varies by Context
Obtaining 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.

How to prevent it

Architecture and Design · System Configuration Recommendations include removing the script from the web server and moving it to a location not accessible from the Internet.

Source: MITRE CWE catalog · Official entry on the MITRE website

CWE-540 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20211
20231
20247
20257
202611

All CWE-540 CVEs

27 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.