{"id":"CVE-2025-62780","aliases":["CVE-2025-62780","GHSA-4c3j-3h7v-22q9","PYSEC-2025-91"],"related":[],"kind":"vulnerability","state":"published","title":"changedetection.io vulnerable to stored XSS in Watch update via API","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nA Stored Cross Site Scripting is present in the changedetection.io Watch update API due to unsufficient security checks.\n\n### Details\n\nTested on changedetection.io version *v0.50.24*\n\n```console\nREPOSITORY                            TAG       IMAGE ID       CREATED        SIZE\nghcr.io/dgtlmoon/changedetection.io   latest    0367276509a0   23 hours ago   599MB\n```\n\nWhen 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\".\nThis is catched by the function `validate_url(test_url)`.\n\n```python\ndef validate_url(test_url):\n    # ...\n    from .model.Watch import is_safe_url\n    if not is_safe_url(test_url):\n        # This should be wtforms.validators.\n        raise ValidationError('Watch protocol is not permitted by SAFE_PROTOCOL_REGEX or incorrect URL format')\n```\n\nWhen instead the Watch API is used, this check is not performed resulting in unsafe URLs added as Watch.\n\n### PoC\n\nUpdate an existing watch with an unsafe URL\n```console\ncurl -X PUT \"http://example.site/api/v1/watch/1242e1c5-d59e-4352-0078-203a55b21282\" \\\n  -H \"x-api-key: XXX\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"url\": \"javascript:alert(document.domain)\",\n    \"title\": \"XSS PoC\",\n    \"paused\": false\n  }'\n```\n\n### Impact\n\nTwo scenarios are possibile:\n\n1. 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.\n2. An attacker substitutes the URL in an existing watch with a new URL that is in reality a JavaScript payload.\n\nWhen the user clicks on *Preview* and then on the malicious link, the JavaScript malicious code is executed.\n\n<img width=\"1200\" height=\"643\" alt=\"poc1\" src=\"https://github.com/user-attachments/assets/db81e0c7-b6d3-4332-b15d-a688a48c3227\" />\n<br>\n<img width=\"1200\" height=\"643\" alt=\"poc2\" src=\"https://github.com/user-attachments/assets/e704b37c-d339-4322-9fc0-ad50dd86b31d\" />\n\n\n\n### Credits\n\nEdoardo Ottavianelli @edoardottt","format":"markdown","source":"ghsa"},{"lang":"es","text":"changedetection.io es una herramienta de detección de cambios en páginas web de código abierto gratuita. Un Cross-Site Scripting Almacenado está presente en la API de actualización de Watch de changedetection.io en versiones anteriores a la 0.50.34 debido a comprobaciones de seguridad insuficientes. Dos escenarios son posibles. En el primero, un atacante puede insertar un nuevo watch con una URL arbitraria que realmente apunta a una página web. Una vez que se recupera el contenido HTML, el atacante actualiza la URL con una carga útil de JavaScript. En el segundo, un atacante sustituye la URL en un watch existente con una nueva URL que es en realidad una carga útil de JavaScript. Cuando el usuario hace clic en *Preview* y luego en el enlace malicioso, se ejecuta el código malicioso de JavaScript. La versión 0.50.34 corrige el problema.","source":"nvd"}],"published":"2025-11-10T21:18:52.945Z","modified":"2026-06-17T09:52:25.393Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N","score":3.5,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N","score":3.5,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N","score":3.5,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 0.50.34","status":"affected"}],"vendor":"dgtlmoon","product":"changedetection.io","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.50.34"}],"ecosystem":"PyPI","package":"changedetection-io","purl":"pkg:pypi/changedetection-io","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.50.34"}],"vendor":"changedetection","product":"changedetection","cpe":"cpe:2.3:a:changedetection:changedetection:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.50.34"}],"ecosystem":"PyPI","package":"changedetection-io","purl":"pkg:pypi/changedetection-io","source":"pysec"}],"references":[{"url":"https://github.com/dgtlmoon/changedetection.io/security/advisories/GHSA-4c3j-3h7v-22q9","tags":["evidence","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-62780","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/dgtlmoon/changedetection.io/issues/3562","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/dgtlmoon/changedetection.io/pull/3564","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/dgtlmoon/changedetection.io","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/dgtlmoon/changedetection.io/releases/tag/0.50.34","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/changedetection-io/PYSEC-2025-91.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-11-10T21:43:49.371Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-62780","url":"https://www.cve.org/CVERecord?id=CVE-2025-62780","licence":"CVE Terms of Use","modified":"2025-11-10T21:43:52.020Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4c3j-3h7v-22q9","url":"https://github.com/advisories/GHSA-4c3j-3h7v-22q9","licence":"CC-BY-4.0","modified":"2026-06-05T14:30:14.151Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-62780","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-62780","licence":"Public domain","modified":"2026-06-17T09:52:25.393Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2025-91","url":"https://osv.dev/vulnerability/PYSEC-2025-91","licence":"CC-BY-4.0","modified":"2026-05-20T09:18:54.298Z"}],"updatedAt":"2026-11-25T22:59:07.414Z","epss":{"score":0.00462,"percentile":0.41749,"date":"2026-12-01T12:00:22.000Z"}}