CVE-2026-27645: Changedetection.io Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-mw8m-398g-h89w
CVSS 6.1
CWE-79
Published
Advisory Summary

CVE-2026-27645 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Changedetection.io libraries in the PyPI ecosystem. The issue involves changedetection.io vulnerable to reflected xss in rss single watch error response. Remediation is available by upgrading affected packages to version 0.53.7.

CVE-2026-27645 at a Glance

CVE Identifier CVE-2026-27645
GHSA Identifier GHSA-mw8m-398g-h89w
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Changedetection.io
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-27645

To remediate this vulnerability, upgrade all affected Changedetection.io dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

changedetection.io fixed: 0.53.7
pip install changedetection.io>=0.53.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show changedetection.io

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-27645, inspect your installed packages using pip:

pip show changedetection.io

Analyze the terminal output to locate any version of Changedetection.io in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.53.7), your application is affected.

Note: The pip show changedetection.io command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Changedetection.io, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary Three security vulnerabilities were identified in [changedetection.io](http://changedetection.io/) through source code review and live validation against a locally deployed Docker instance. All vulnerabilities were confirmed exploitable on the latest version (0.53.6) it was additionally validated at scale against 500 internet-facing instances discovered via FOFA search engine, producing 5K+ confirmed detections using a custom Nuclei template, demonstrating widespread real-world impact. The RSS single-watch endpoint reflects the UUID path parameter directly in the HTTP response body without HTML escaping. Since Flask returns text/html by default for plain string responses, the browser parses and executes injected JavaScript. ### Details File: `changedetectionio/blueprint/rss/single_watch.py (lines ~45 and ~50)` The UUID parameter from the URL path is interpolated into the response body using an f-string with no escaping: ### Line ~45 ``` watch = datastore.data['watching'].get(uuid) if not watch: return f"Watch with UUID {uuid} not found", 404 # ← No escaping, Content-Type: text/html ``` ### Line ~50 ``` if len(dates) < 2: return f"Watch {uuid} does not have enough history snapshots...", 400 # ← Same issue Flask's default Content-Type for plain string responses is text/html; charset=utf-8, so any HTML/JavaScript in {uuid} is rendered by the browser. ``` ## Attack Vector The attack requires a valid RSS access token, which is a 32-character hex string exposed in the HTML <link> tag on the homepage without authentication: <!-- Visible in page source of any unauthenticated instance --> <link rel="alternate" type="application/rss+xml" href="/rss?token=f2bb14e20ff01bad83a743cf21b5df95"> Attacker visits the target's homepage if it unauthenticathed and extracts the RSS token from the <link> tag Crafts a malicious URL: 1. http://target:5000/rss/watch/%3Cimg%20src%3Dx%20onerror%3Dalert(document.cookie)%3E?token=EXTRACTED_TOKEN 2. Sends the link to a victim who has an active session on the [changedetection.io](http://changedetection.io/) instance 3. When the victim clicks the link, the server responds with: 4. Watch with UUID not found The browser renders the <img> tag, the onerror fires, and JavaScript executes in the victim's session context ### PoC Request: ``` GET /rss/watch/%3Cimg%20src%3Dx%20onerror%3Dalert(document.cookie)%3E?token=223e7edbbfee2268f5abb5344919054e HTTP/1.1 Host: [127.0.0.1:5000](http://127.0.0.1:5000/) ``` Response: ``` HTTP/1.1 404 NOT FOUND Content-Type: text/html; charset=utf-8 ``` Watch with UUID not found <img width="1918" height="1032" alt="image" src="https://github.com/user-attachments/assets/1633b167-e4ec-4705-a110-18fad7826fc9" /> The XSS payload is reflected unescaped in an HTML response. The browser executes alert(document.cookie). Lots of intances over internet affected to this. <img width="1465" height="721" alt="image" src="https://github.com/user-attachments/assets/f54160d4-abd1-4e8d-b845-f85e53e79325" /> ### Impact - Session cookie theft via document.cookie exfiltration - Account takeover if session cookies lack HttpOnly flag - Phishing via crafted links that appear to originate from a trusted [changedetection.io](http://changedetection.io/) instance - Token is obtainable without authentication from the homepage <link> tag, lowering the barrier to exploitation changedetection.io can work with developer teams to validate and address these issues. Please confirm receipt of this report and inform changedetection.io of the preferred timeline for coordinating the fix. Roberto Nunes

CVE-2026-27645 Affected Changedetection.io Versions

1 component(s)
Fixed Versions:
0.53.7
Product / Package Ecosystem Affected Versions Fixed Version
changedetection.io
PyPI
< 0.53.7
0.53.7

References

Frequently Asked Questions

What is CVE-2026-27645?
CVE-2026-27645 is a security vulnerability in Changedetection.io involving changedetection.io Vulnerable to Reflected XSS in RSS Single Watch Error Response under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Changedetection.io versions are affected?
Affected versions include releases prior to 0.53.7 across affected packages: changedetection.io.
What version fixes CVE-2026-27645?
Upgrading to 0.53.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is changedetection.io affected?
Yes, changedetection.io is affected in releases prior to 0.53.7. Upgrade your dependency to 0.53.7 or later.
What is the CVSS score of CVE-2026-27645?
CVE-2026-27645 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2026-27645?
CVE-2026-27645 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check PyPI dependencies for CVE-2026-27645?
Run the dependency tree command: 'pip show changedetection.io'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mw8m-398g-h89w",
  "modified" : "2026-02-25T19:07:44Z",
  "published" : "2026-02-25T19:07:44Z",
  "aliases" : [ "CVE-2026-27645" ],
  "summary" : "changedetection.io Vulnerable to Reflected XSS in RSS Single Watch Error Response",
  "details" : "### Summary\nThree security vulnerabilities were identified in [changedetection.io](http://changedetection.io/) through source code review and live validation against a locally deployed Docker instance. All vulnerabilities were confirmed exploitable on the latest version (0.53.6) it was additionally validated at scale against 500 internet-facing instances discovered via FOFA search engine, producing 5K+ confirmed detections using a custom Nuclei template, demonstrating widespread real-world impact.\nThe RSS single-watch endpoint reflects the UUID path parameter directly in the HTTP response body without HTML escaping. Since Flask returns text/html by default for plain string responses, the browser parses and executes injected JavaScript.\n\n### Details\nFile: `changedetectionio/blueprint/rss/single_watch.py (lines ~45 and ~50)`\n\nThe UUID parameter from the URL path is interpolated into the response body using an f-string with no escaping:\n\n### Line ~45\n```\nwatch = datastore.data['watching'].get(uuid)\nif not watch:\n    return f\"Watch with UUID {uuid} not found\", 404  # ← No escaping, Content-Type: text/html\n```\n\n### Line ~50\n```\nif len(dates) < 2:\n    return f\"Watch {uuid} does not have enough history snapshots...\", 400  # ← Same issue\nFlask's default Content-Type for plain string responses is text/html; charset=utf-8, so any HTML/JavaScript in {uuid} is rendered by the browser.\n```\n\n## Attack Vector\nThe attack requires a valid RSS access token, which is a 32-character hex string exposed in the HTML <link> tag on the homepage without authentication:\n\n<!-- Visible in page source of any unauthenticated instance -->\n<link rel=\"alternate\" type=\"application/rss+xml\" href=\"/rss?token=f2bb14e20ff01bad83a743cf21b5df95\">\n\nAttacker visits the target's homepage if it unauthenticathed and extracts the RSS token from the <link> tag\nCrafts a malicious URL:\n\n1. http://target:5000/rss/watch/%3Cimg%20src%3Dx%20onerror%3Dalert(document.cookie)%3E?token=EXTRACTED_TOKEN\n2. Sends the link to a victim who has an active session on the [changedetection.io](http://changedetection.io/) instance\n3. When the victim clicks the link, the server responds with:\n4. Watch with UUID not found\n\nThe browser renders the <img> tag, the onerror fires, and JavaScript executes in the victim's session context\n\n### PoC\nRequest:\n\n```\nGET /rss/watch/%3Cimg%20src%3Dx%20onerror%3Dalert(document.cookie)%3E?token=223e7edbbfee2268f5abb5344919054e HTTP/1.1\nHost: [127.0.0.1:5000](http://127.0.0.1:5000/)\n```\n\nResponse:\n\n```\nHTTP/1.1 404 NOT FOUND\nContent-Type: text/html; charset=utf-8\n```\n\nWatch with UUID not found\n\n\n<img width=\"1918\" height=\"1032\" alt=\"image\" src=\"https://github.com/user-attachments/assets/1633b167-e4ec-4705-a110-18fad7826fc9\" />\n\nThe XSS payload is reflected unescaped in an HTML response. The browser executes alert(document.cookie).\n\nLots of intances over internet affected to this.\n<img width=\"1465\" height=\"721\" alt=\"image\" src=\"https://github.com/user-attachments/assets/f54160d4-abd1-4e8d-b845-f85e53e79325\" />\n\n\n### Impact\n- Session cookie theft via document.cookie exfiltration\n- Account takeover if session cookies lack HttpOnly flag\n- Phishing via crafted links that appear to originate from a trusted [changedetection.io](http://changedetection.io/) instance\n- Token is obtainable without authentication from the homepage <link> tag, lowering the barrier to exploitation\n\nchangedetection.io can work with developer teams to validate and address these issues. Please confirm receipt of this report and inform changedetection.io of the preferred timeline for coordinating the fix.\n\nRoberto Nunes",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "changedetection.io"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.53.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.53.6"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/dgtlmoon/changedetection.io/security/advisories/GHSA-mw8m-398g-h89w"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-27645"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dgtlmoon/changedetection.io/commit/a385c89abf44b52fcfa20c7c6a6dd3047c4c1eb5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/dgtlmoon/changedetection.io"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-25T19:07:44Z",
    "nvd_published_at" : "2026-02-25T05:17:26Z"
  }
}