CVE-2026-71285: CWE-79 in louislam uptime-kuma
Uptime Kuma's Matomo analytics integration (server/analytics/matomo-analytics.js) injects the admin-configurable Matomo `siteId` value as a bare, unquoted JavaScript expression inside a <script> block rendered on every public status page: `_paq.push(['setSiteId', ${escapedSiteIdHTMLAttribute}]);`. The escaping pipeline used (jsesc with isScriptContext:true, then html-escaper.escape()) does not escape the characters `]`, `)`, `;`, `(`, which are sufficient to break out of the array/push expression context. A siteId value such as `1]);alert(document.cookie)//`, once saved by an editor/admin, executes arbitrary JavaScript for every unauthenticated visitor of the public /status/<slug> page, enabling session-cookie theft and full page takeover.
AI Analysis
Technical Summary
The vulnerability in Uptime Kuma's Matomo analytics integration (server/analytics/matomo-analytics.js) arises from injecting the admin-configured Matomo siteId value directly into a JavaScript array push expression inside a <script> block on public status pages. The escaping mechanism used does not escape critical characters such as ], ), ;, and (, enabling an attacker to break out of the intended JavaScript context. By setting a malicious siteId value like '1]);alert(document.cookie)//', an attacker can execute arbitrary JavaScript for every unauthenticated visitor, leading to session cookie theft and full page takeover. This is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation).
Potential Impact
Successful exploitation allows an attacker with administrative privileges to inject arbitrary JavaScript code into public status pages, affecting all unauthenticated visitors. This can lead to session cookie theft and full page takeover of the affected pages. The vulnerability has a high severity with a CVSS score of 8.1, indicating significant confidentiality and integrity impact but no direct availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict administrative access to trusted users only to prevent malicious siteId injection. Monitor for updates from the vendor regarding a patch or official mitigation.
CVE-2026-71285: CWE-79 in louislam uptime-kuma
Description
Uptime Kuma's Matomo analytics integration (server/analytics/matomo-analytics.js) injects the admin-configurable Matomo `siteId` value as a bare, unquoted JavaScript expression inside a <script> block rendered on every public status page: `_paq.push(['setSiteId', ${escapedSiteIdHTMLAttribute}]);`. The escaping pipeline used (jsesc with isScriptContext:true, then html-escaper.escape()) does not escape the characters `]`, `)`, `;`, `(`, which are sufficient to break out of the array/push expression context. A siteId value such as `1]);alert(document.cookie)//`, once saved by an editor/admin, executes arbitrary JavaScript for every unauthenticated visitor of the public /status/<slug> page, enabling session-cookie theft and full page takeover.
CVSS v3.1
Score 8.1high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Uptime Kuma's Matomo analytics integration (server/analytics/matomo-analytics.js) arises from injecting the admin-configured Matomo siteId value directly into a JavaScript array push expression inside a <script> block on public status pages. The escaping mechanism used does not escape critical characters such as ], ), ;, and (, enabling an attacker to break out of the intended JavaScript context. By setting a malicious siteId value like '1]);alert(document.cookie)//', an attacker can execute arbitrary JavaScript for every unauthenticated visitor, leading to session cookie theft and full page takeover. This is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation).
Potential Impact
Successful exploitation allows an attacker with administrative privileges to inject arbitrary JavaScript code into public status pages, affecting all unauthenticated visitors. This can lead to session cookie theft and full page takeover of the affected pages. The vulnerability has a high severity with a CVSS score of 8.1, indicating significant confidentiality and integrity impact but no direct availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict administrative access to trusted users only to prevent malicious siteId injection. Monitor for updates from the vendor regarding a patch or official mitigation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-05T12:23:34.968Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7336e7bf8831d539ed92ea
Added to database: 08/05/2026, 13:13:11 UTC
Last enriched: 08/05/2026, 13:27:07 UTC
Last updated: 08/05/2026, 23:19:51 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.