{"id":"CVE-2026-71285","summary":"Uptime Kuma Stored XSS via Matomo Analytics Site ID on Public Status Pages","details":"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 \u003cscript\u003e 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/\u003cslug\u003e page, enabling session-cookie theft and full page takeover.","modified":"2026-08-07T03:47:04.085059616Z","published":"2026-08-05T12:26:30.908Z","database_specific":{"cna_assigner":"TuranSec","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71285.json"},"references":[{"type":"WEB","url":"https://github.com/louislam/uptime-kuma/blob/master/server/analytics/matomo-analytics.js"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71285.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-71285"},{"type":"PACKAGE","url":"https://github.com/louislam/uptime-kuma"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/louislam/uptime-kuma","events":[{"introduced":"0"},{"last_affected":"9f3b837c8c7f359ec1acee80b3c0430451986a03"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"2.4.0"}],"source":"AFFECTED_FIELD"}}],"versions":["2.4.0","2.3.2","2.3.1","2.3.0","2.2.1","2.2.0","2.1.3","2.1.2","2.1.1","2.1.0","2.1.0-beta.3","2.1.0-beta.2","2.1.0-beta.1","2.1.0-beta.0","2.0.0","2.0.0-beta.2-temp","1.23.1","1.23.0","1.23.0-beta.1","1.23.0-beta.0","1.21.2","1.21.2-beta.0","1.21.1","1.21.0","1.21.0-beta.1","1.21.0-beta.0","1.20.0-beta.0","1.19.4","1.19.3","1.19.2","1.19.1","1.19.0","1.19.0-beta.2","1.19.0-beta.1","1.17.1","1.17.0","1.17.0-beta.1","1.17.0-beta.0","1.16.0-beta.0","1.14.0-beta.2","1.14.0-beta.1","1.12.1","1.12.0","1.11.4","1.11.3","1.11.2","1.11.1","1.11.0","1.10.2","1.10.1","1.10.0","1.9.1","1.9.0","1.7.0","1.6.0","1.3.2","1.3.1","1.3.0","1.2.0","1.1.0","1.0.10","1.0.9","1.0.8","1.0.7","1.0.5","1.0.4","1.0.3","1.0.2","1.0.1","1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-71285.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N"}]}