Secure Error Logging Practices to Prevent Information Leaks Across Java, Kotlin, JavaScript and Python
Error logging forms a critical part of the software development lifecycle, aiding debugging and early detection of failures. However, logs must remain both informative and secure to avoid unintended information disclosure.
The article, written by Natalia Noyanova of T1 IT Holding, draws on years of experience in information security and static code analysis. It highlights how code analyzers flag internal or external information leaks tied to error logging and explains why fixing these issues requires more than simple code changes.
Logging levels range from DEBUG (detailed diagnostic data not used in production) through INFO, WARNING, ERROR to FATAL (critical errors that halt the application). Recording mechanisms include plain text files, multi-stage logs requiring special readers, binary formats and databases.
Trace ID provides a unique technical identifier generated at the API gateway for each incoming request and propagated unchanged through all microservices. Correlation ID links multiple technical requests that belong to one business transaction, such as an order placement involving inventory, payment and confirmation steps.
Examples of exploitation include Flask applications running with debug=True that return full stack traces revealing absolute paths like /app/main.py and Python interpreter versions. Similar leaks occur when developers manually return traceback.format_exc() or forward raw SQLite errors after failed queries, confirming the database engine and aiding SQL injection refinement.
Prevention measures cover removal of X-Powered-By and Server headers via Nginx server_tokens off, input sanitization with regular expressions to block newlines in trace identifiers, and adoption of OpenTelemetry for automatic generation of safe hex-formatted trace IDs. Structured JSON logging further isolates fields and prevents log injection attacks described under CWE-117.
Related articles
DoS Vulnerability in XML Parser Expat (libexpat) Allows Resource Exhaustion via CVE-2026-137992
A denial-of-service vulnerability has been identified in the widely used XML parsing library Expat, also known as libexpat. The flaw stems from the library's inability to properly detect duplicate attribute declarations within DTD structures, enabling crafted XML documents to trigger excessive CPU consumption. VulnCheck publicly disclosed the issue as CVE-2026-137992 on November 27, 2026, assigning a CVSS v4.0 base score of 8.7 and a CVSS v3.1 score of 7.5, classifying it as High severity. All versions prior to the November 23 release of Expat 2.11.0 are affected. Mitigation work is underway in the project's source repository, though no official patch has been finalized yet.
US CISA Adds Drupal and GeoServer Flaws to KEV Catalog After Confirmed Exploitation
The US Cybersecurity and Infrastructure Security Agency has added one Drupal vulnerability and two GeoServer vulnerabilities to its Known Exploited Vulnerabilities catalog following confirmed attacks. The Drupal issue, tracked as CVE-2026-136716, allows unauthenticated takeover of sites when the installer remains accessible due to atypical or incomplete installations. GeoServer flaws CVE-2026-129243 and CVE-2026-120705 enable attackers to bypass authorization and read arbitrary files, and when chained with three additional vulnerabilities they permit remote code execution without authentication. CISA set a November 30 deadline for federal agencies to apply mitigations and urged all organizations to check for compromise. Drupal maintainers released updates for versions 11.4.14, 11.3.23, and 10.6.23 along with installer hardening guidance, while GeoServer users must upgrade to 3.0.2, 2.28.6, or 2.27.7.
Telegram Warns iPhone Users on Outdated iOS Versions of Mass Exploitation Risk
Telegram has started sending mass notifications to iPhone owners running older versions of iOS, alerting them to active exploitation campaigns that can compromise devices and personal data. Founder Pavel Durov shared a screenshot confirming the scale of the warnings and stated that outdated iOS versions contain vulnerabilities allowing attackers to gain access simply by having the user open a malicious website. The message emphasizes that all user data is at risk and urges immediate updates through the standard Settings menu. Durov noted that the campaign targets users of legacy iOS releases in a widespread manner. The advisory directs users to navigate to Settings, General, and Software Update to install the latest patches and restore device security.
Cybercriminals Exploit Drupal Installer Flaw CVE-2026-136716 to Hijack Sites Without Authentication
Cybercriminals are actively exploiting a critical flaw in the Drupal core installer that allows unauthenticated attackers to fully compromise websites. The Drupal security team confirmed the attacks on November 25, 2026, and released patches for all supported core branches. The vulnerability, tracked as CVE-2026-136716, affects sites where the installer remains publicly accessible, including production instances that had applied earlier fixes. Successful exploitation grants complete control over the site, exposing private data and enabling modification or deletion of content. The issue follows a related November 18 advisory covering CVE-2026-132165, which was added to the CISA Known Exploited Vulnerabilities catalog. Administrators must run update.php after applying the new patches, review access logs for signs of prior compromise on user account 1, and ensure install.php is properly restricted.