CVE-2024-56331
JavaScript vulnerability analysis and mitigation

Overview

Uptime Kuma, an open source, self-hosted monitoring tool, was found to contain an Improper URL Handling Vulnerability (CVE-2024-56331) that was disclosed on December 20, 2024. The vulnerability allows authenticated attackers to access sensitive local files on the server by exploiting the file:/// protocol through the "real-browser" request type functionality. This security issue has been addressed in version 1.23.16 and 2.0.0-beta.1 (GitHub Advisory).

Technical details

The vulnerability stems from insufficient validation of user input in the URL field. When using the "real-browser" request type, which takes screenshots of provided URLs, the system fails to properly validate or sanitize URLs containing the file:/// protocol. The browser instance processes these URLs without restriction, allowing access to local system files. The vulnerability has been assigned a CVSS v3.1 score of 6.8 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N (GitHub Advisory).

Impact

The vulnerability enables authenticated attackers to access and potentially exfiltrate sensitive system files through screenshots. Critical files that could be exposed include /etc/passwd (user account information), /etc/shadow (password hashes), application configuration files, and database credentials stored in /app/data/config.json. Any authenticated user with access to the "real-browser" request type functionality could potentially exploit this vulnerability (GitHub Advisory).

Exploitability

The vulnerability requires authentication and user interaction to exploit. An attacker must have valid credentials to access the system and submit a specially crafted URL using the file:/// protocol through the "real-browser" request type. For example, using URLs like view-source:file:///etc/passwd would allow the attacker to capture screenshots of sensitive file contents (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Uptime Kuma version 1.23.16 and 2.0.0-beta.1. The fix includes implementing proper URL validation to only allow HTTP and HTTPS protocols. Users are strongly advised to upgrade to these or newer versions. There are no known workarounds for this vulnerability (GitHub Advisory, GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-77415CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-77414CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-77413CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-63421HIGH7.5
  • JavaScript logoJavaScript
  • @keystone-6/core
NoYesAug 21, 2026
CVE-2026-53509MEDIUM5.7
  • JavaScript logoJavaScript
  • @aborruso/ckan-mcp-server
NoYesAug 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management