changedetection.io CVE-2026-41895
HIGHSeverity by source
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
5DescriptionGitHub Advisory
changedetection.io_XXE_01 Vulnerability Report: We discovered a XXE vulnerability in the changedetection.io project
While analyzing the code logic, it was determined that an area may lead to unintended behavior under specific conditions. With the project's security in mind, see the analysis results to discern whether this may indicate a potential security risk.
Overview
- SOURCE_VERSION:
0.54.9 (9f3a9fdc18bba404244801e5df8109e213ce9ff4) - Vulnerability type:
XXE - Finding title:
XML XPath helpers parse untrusted XML with entity resolution left to lxml defaults - Affected location:
changedetectionio/html_tools.py:287
Root Cause
xpath_filter() switches to XML mode for XML/RSS content and creates etree.XMLParser(strip_cdata=False) without explicitly disabling external entity resolution, external DTD loading, or network-backed entity lookup. The helper then parses untrusted XML bytes directly with etree.fromstring(...).
Source-to-Sink Chain
- Untrusted XML/RSS response content is fetched from monitored URLs.
- Stream detection marks the content as XML/RSS and the include-filter path invokes
xpath_filter(..., is_xml=True). xpath_filter()builds the default XML parser and callsetree.fromstring(...)atchangedetectionio/html_tools.py:287.- External entity declarations in attacker XML can be expanded by parser-default behavior in affected runtime combinations.
Exploitation Preconditions
- Attacker controls the watched XML/RSS response body.
- The watch uses an XPath include filter that triggers XML helper parsing.
- Runtime parser behavior allows external entity expansion (for example, vulnerable dependency/default combinations).
- The process can read the referenced local resource.
Risk
The XML helper path can turn watch processing into a local file disclosure primitive when entity expansion is enabled by parser defaults.
Impact
Sensitive local files can be exposed into extracted watch output, diff history, and downstream notification channels.
Remediation
- Harden XML parser construction with
resolve_entities=False,load_dtd=False, andno_network=True. - Reject
DOCTYPE/entity declarations for untrusted XML if DTD features are unnecessary. - Add regression tests that assert external entities are never expanded in XPath XML helper flows.
AnalysisAI
XML External Entity (XXE) injection in changedetection.io version 0.54.9 and earlier allows local file disclosure when processing attacker-controlled XML or RSS feeds. The xpath_filter() function in html_tools.py creates an lxml parser without disabling external entity resolution, enabling attackers to embed DOCTYPE declarations that read sensitive files from the host system. Extracted content appears in watch output, diff history, and notification channels. No vendor-released patch identified at time of analysis. CVSS 8.2 reflects high confidentiality impact with attack complexity high due to specific runtime parser behavior requirements.
Technical ContextAI
This vulnerability exploits the lxml library's default XML parser configuration in Python. The xpath_filter() function at changedetectionio/html_tools.py:287 instantiates etree.XMLParser(strip_cdata=False) without hardening parameters, then passes untrusted XML content from monitored URLs to etree.fromstring(). By default, lxml may allow external entity expansion depending on the underlying libxml2 version and compilation flags. CWE-611 (Improper Restriction of XML External Entity Reference) occurs when parsers process DOCTYPE declarations containing SYSTEM or PUBLIC entity definitions that reference local file:// URIs or remote resources. The affected component processes XML and RSS feeds as part of changedetection.io's core website monitoring functionality, where users configure XPath filters to extract specific content elements. The package identifier pkg:pip/changedetection.io indicates this is a Python package distributed via PyPI.
RemediationAI
No vendor-released patch identified at time of analysis. Monitor the GitHub advisory at https://github.com/dgtlmoon/changedetection.io/security/advisories/GHSA-v7cp-2cx9-x793 for official patch announcements. As interim compensating controls, consider these options with their trade-offs: (1) Upgrade the underlying lxml library to version 4.6.3 or later, which disables entity resolution by default-this mitigates the issue without code changes but may not be possible if other dependencies pin older lxml versions. (2) Apply a code patch to changedetectionio/html_tools.py line 287, replacing etree.XMLParser(strip_cdata=False) with etree.XMLParser(strip_cdata=False, resolve_entities=False, load_dtd=False, no_network=True)-this requires forking the codebase and maintaining custom builds. (3) Restrict changedetection.io instances to monitor only trusted, operator-controlled XML/RSS feeds and avoid XPath filter usage on third-party content-this limits functionality and requires process discipline. (4) Deploy changedetection.io in a sandboxed container or VM with minimal filesystem access, ensuring no sensitive files are readable by the application user-this reduces exfiltration impact but adds operational complexity. Each mitigation has deployment-specific constraints; prioritize official vendor patch when available.
Share
External POC / Exploit Code
Leaving vuln.today
GHSA-v7cp-2cx9-x793