CVE-2025-62780: changedetection.io vulnerable to stored XSS in Watch update via API

Published Nov 10, 2025
·
Updated

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

console REPOSITORY TAG IMAGE ID CREATED SIZE ghcr.io/dgtlmoon/changedetection.io latest 0367276509a0 23 hours ago 599MB

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". This is catched by the function validateurl(testurl).

python def validateurl(testurl): # ... from .model.Watch import issafeurl if not issafeurl(testurl): # This should be wtforms.validators. raise ValidationError('Watch protocol is not permitted by SAFEPROTOCOLREGEX 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 console 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:

1. 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. 2. 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.

<img width="1200" height="643" alt="poc1" src="https://github.com/user-attachments/assets/db81e0c7-b6d3-4332-b15d-a688a48c3227" /> <br> <img width="1200" height="643" alt="poc2" src="https://github.com/user-attachments/assets/e704b37c-d339-4322-9fc0-ad50dd86b31d" />

Credits

Edoardo Ottavianelli @edoardottt

Other sources

changedetection.io is a free open source web page change detection tool. A Stored Cross Site Scripting is present in changedetection.io Watch update API in versions prior to 0.50.34 due to insufficient security checks. Two scenarios are possible. In the first, 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. In the second, 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. Version 0.50.34 fixes the issue.

MITRE

Affected Software

3 affected componentsFixes available
changedetection.io ChangeDetection.io<0.50.34
pip/changedetection.io<0.50.34
0.50.34
Changedetection Changedetection<0.50.34

Event History

Nov 10, 2025
CVE Published
via MITRE·09:18 PM
Data Sourced
via MITRE·09:18 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
Affected Software
Nov 12, 2025
Advisory Published
via GitHub·09:24 PM
Data Sourced
via GitHub·09:24 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-62780?

CVE-2025-62780 is classified as a critical vulnerability due to its potential for Stored Cross Site Scripting.

2

How do I fix CVE-2025-62780?

To fix CVE-2025-62780, upgrade to changedetection.io version 0.50.34 or later to address the vulnerability.

3

What are the potential impacts of CVE-2025-62780?

The potential impacts of CVE-2025-62780 include unauthorized script execution and data theft due to Cross Site Scripting.

4

Which versions of changedetection.io are affected by CVE-2025-62780?

Versions of changedetection.io prior to 0.50.34 are affected by CVE-2025-62780.

5

Who is at risk from CVE-2025-62780?

Users and administrators of changedetection.io versions before 0.50.34 are at risk from CVE-2025-62780.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203