CVE-2025-62780: changedetection.io: Stored XSS in Watch update via API
Summary A Stored Cross Site Scripting is present in the changedetection.io Watch update API due to unsufficient security checks. Details Tested on changedetection.io version v0.50.24 When a user tries to add an unsafe URL as a Watch in the changedetection.io UI, the action is blocked with the error message "Watch protocol is not permitted by SAFEPROTOCOLREGEX or incorrect URL format".
Published Nov 12, 2025 · Updated Jun 5, 2026
Affected packages
changedetection.io
- Ecosystem
- PyPI
- Affected
- < 0.50.34
- Fixed in
- 0.50.34
- Check
pip show changedetection.io
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
A Stored Cross Site Scripting is present in the changedetection.io Watch update API due to unsufficient security checks.
Details
Tested on changedetection.io version *v0.50.24*
REPOSITORY TAG IMAGE ID CREATED SIZE
ghcr.io/dgtlmoon/changedetection.io latest 0367276509a0 23 hours ago 599MBWhen a user tries to add an unsafe URL as a Watch in the changedetection.io UI, the action is blocked with the error message "Watch protocol is not permitted by SAFE_PROTOCOL_REGEX or incorrect URL format". This is catched by the function validate_url(test_url).
def validate_url(test_url):
# ...
from .model.Watch import is_safe_url
if not is_safe_url(test_url):
# This should be wtforms.validators.
raise ValidationError('Watch protocol is not permitted by SAFE_PROTOCOL_REGEX or incorrect URL format')When instead the Watch API is used, this check is not performed resulting in unsafe URLs added as Watch.
PoC
Update an existing watch with an unsafe URL
curl -X PUT "http://example.site/api/v1/watch/1242e1c5-d59e-4352-0078-203a55b21282" \
-H "x-api-key: XXX" \
-H "Content-Type: application/json" \
-d '{
"url": "javascript:alert(document.domain)",
"title": "XSS PoC",
"paused": false
}'Impact
Two scenarios are possibile:
- An attacker can insert a new watch with an arbitrary URL which really points to a web page. Once the HTML content is retrieved, the attacker updates the URL with a JavaScript payload.
- An attacker substitutes the URL in an existing watch with a new URL that is in reality a JavaScript payload.
When the user clicks on *Preview* and then on the malicious link, the JavaScript malicious code is executed.
Credits
Edoardo Ottavianelli @edoardottt
Credited to edoardottt.
References
- https://github.com/dgtlmoon/changedetection.io/security/advisories/GHSA-4c3j-3h7v-22q9
- https://nvd.nist.gov/vuln/detail/CVE-2025-62780
- https://github.com/dgtlmoon/changedetection.io/issues/3562
- https://github.com/dgtlmoon/changedetection.io/pull/3564
- https://github.com/dgtlmoon/changedetection.io/releases/tag/0.50.34
- https://github.com/pypa/advisory-database/tree/main/vulns/changedetection-io/PYSEC-2025-91.yaml
- https://github.com/advisories/GHSA-4c3j-3h7v-22q9
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-25527
changedetection.io is vulnerable to unauthenticated static path traversal
medium5.3Jul 20, 2026CVE-2026-43891
changedetection.io has an Arbitrary Local File Read via a crafted backup restore
high7.5May 5, 2026CVE-2026-41895
changedetection.io project has an XXE vulnerability
high7.5No fixMay 4, 2026CVE-2026-35490
changedetection.io Vulnerable to Authentication Bypass via Decorator Ordering
critical9.8Apr 6, 2026CVE-2026-33981
Changedetection.io Discloses Environment Variables via jq env Builtin in Include Filters
high8.3Mar 27, 2026CVE-2026-29038
changedetection.io has Reflected XSS in its RSS Tag Error Response
medium6.1Mar 4, 2026
