CWEweakness
CWE-540 Inclusion of Sensitive Information in Source Code
- Abstraction
- Base
- Structure
- Simple
- Status
- Incomplete
- Languages
- Not Language-Specific
- CWE version
- 5.0
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 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.
Potential mitigations
• [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.
Detection methods
• Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
Observed examples
• CVE-2022-25512: Server for Team Awareness Kit (TAK) application includes sensitive tokens in the JavaScript source code.
• CVE-2022-24867: The LDAP password might be visible in the html code of a rendered page in an IT Asset Management tool.
• CVE-2007-6197: Version numbers and internal hostnames leaked in HTML comments.
Related
Observed example · CVE (3)
- CVE-2022-24867 GLPI is a Free Asset and IT Management Software package, that provides ITIL Service Desk features, licenses tracking and software auditing. vulnerability
- CVE-2022-25512 FreeTAKServer-UI v1.9.8 was discovered to leak sensitive API and Websocket keys. vulnerability
- CVE-2007-6197 The Plumtree portal in BEA AquaLogic Interaction 5.0.2 through 5.0.4 and 6.0.1.218452 allows remote attackers to obtain version numbers and… vulnerability
Child of · CWE (1)
- CWE-538 Insertion of Sensitive Information into Externally-Accessible File or Directory weakness
Referenced by CVE · weakness (37)
- CVE-2026-103096 API key is hardcoded and retrievable from the application package. vulnerability
- CVE-2026-103097 An API key is hardcoded and retrievable from the application package. vulnerability
- CVE-2026-101265 A vulnerability was identified in Intelbras TIP 125i 4.3.35/4.3.41. vulnerability
- CVE-2026-73591 Dell Secure Connect Gateway (SCG) Policy Manager, versions prior to 5.34.00.16, contains an Inclusion of Sensitive Information in Source… vulnerability
- CVE-2025-36076 IBM Cognos Analytics 12.1.0 through 12.1.3 FP1, and 12.0.4 through 12.0.4 FP2 stores sensitive information in source code could be used by… vulnerability
- CVE-2026-84390 A inclusion of sensitive information in source code vulnerability in Fortinet FortiMonitorOnSight 7.2.4 through 7.2.7, FortiMonitorOnSight… vulnerability
- CVE-2026-16581 In igloohome Smart Lock Mobile App versions 3.2.3 and prior, an Inclusion of Sensitive Information in Source Code vulnerability could allow… vulnerability
- CVE-2026-45728 Algernon is a small self-contained pure-Go web server. vulnerability
- CVE-2026-4155 ChargePoint Home Flex Inclusion of Sensitive Information in Source Code Information Disclosure Vulnerability. vulnerability
- CVE-2026-35383 Bentley Systems iTwin Platform exposed a Cesium ion access token in the source of some web pages. vulnerability
- CVE-2026-22275 Dell ECS, versions 3.8.1.0 through 3.8.1.7, and Dell ObjectScale versions prior to 4.2.0.0, contains an Inclusion of Sensitive Information… vulnerability
- CVE-2025-36299 IBM Planning Analytics Local 2.1.0 through 2.1.14 stores sensitive information in source code could be used in further attacks against the… vulnerability
- CVE-2024-38327 IBM Analytics Content Hub 2.0, 2.1, 2.2, and 2.3 is vulnerable to information exposure and further attacks due to an exposed JavaScript… vulnerability
- CVE-2025-49182 Files in the source code contain login credentials for the admin user and the property configuration password, allowing an attacker to get… vulnerability
- CVE-2025-0923 IBM Cognos Analytics 11.2.0, 11.2.1, 11.2.2, 11.2.3, 11.2.4, 12.0.0, 12.0.1, 12.0.2, 12.0.3, and 12.0.4 stores source code on the web… vulnerability
- CVE-2025-3403 A vulnerability was found in Vivotek NVR ND8422P, NVR ND9525P and NVR ND9541P 2.4.0.204/3.3.0.104/4.2.0.101. vulnerability
- CVE-2024-55907 IBM Cognos Analytics Mobile 1.1 for iOS application could allow an attacker to reverse engineer the codebase to gain knowledge about the… vulnerability
- CVE-2025-26013 An issue in Loggrove v.1.0 allows a remote attacker to obtain sensitive information via the read.py component. vulnerability
- CVE-2025-23215 PMD is an extensible multilanguage static code analyzer. vulnerability
- CVE-2024-35144 IBM Maximo Application Suite 8.10, 8.11, and 9.0 - Monitor Component stores source code on the web server that could aid in further attacks… vulnerability
- CVE-2024-38647 An exposure of sensitive information vulnerability has been reported to affect QNAP AI Core. vulnerability
- CVE-2024-9596 An issue has been discovered in GitLab EE affecting all versions starting from 16.6 prior to 17.2.9, from 17.3 prior to 17.3.5, and from… vulnerability
- CVE-2024-27257 IBM OpenPages 8.3 and 9.0 potentially exposes information about client-side source code through use of JavaScript source maps to… vulnerability
- CVE-2024-8417 A vulnerability was found in 云课网络科技有限公司 Yunke Online School System up to 1.5.5. vulnerability
- CVE-2024-39729 IBM Datacap Navigator 9.1.5, 9.1.6, 9.1.7, 9.1.8, and 9.1.9 could allow an authenticated user to obtain sensitive information from source… vulnerability
- CVE-2024-1272 Inclusion of Sensitive Information in Source Code vulnerability in TNB Mobile Solutions Cockpit Software allows Retrieve Embedded Sensitive… vulnerability
- CVE-2024-2355 A vulnerability has been found in keerti1924 Secret-Coder-PHP-Project 1.0 and classified as problematic. vulnerability
- CVE-2024-2265 A vulnerability, which was classified as problematic, was found in keerti1924 PHP-MYSQL-User-Login-System 1.0. vulnerability
- CVE-2023-35013 IBM Security Verify Governance 10.0, Identity Manager could allow a local privileged user to obtain sensitive information from source code. vulnerability
- CVE-2023-30802 The Sangfor Next-Gen Application Firewall version NGAF8.0.17 is vulnerable to a source code disclosure vulnerability. vulnerability