CVE-2024-34061: Changedetection.io Cross-Site Scripting Vulnerability
MODERATECVE-2024-34061 is a MODERATE (CVSS 4.3) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Changedetection.io libraries in the PyPI ecosystem. The issue involves changedetection.io cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 0.45.22.
CVE-2024-34061 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N).
How to Fix CVE-2024-34061
To remediate this vulnerability, upgrade all affected Changedetection.io dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install changedetection.io>=0.45.22
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show changedetection.io
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-34061, inspect your installed packages using pip:
pip show changedetection.io
Analyze the terminal output to locate any version of Changedetection.io in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.45.22), your application is affected.
Note: The pip show changedetection.io command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Changedetection.io, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-34061 Affected Changedetection.io Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
changedetection.io
|
PyPI |
< 0.45.22
|
0.45.22
|
References
Frequently Asked Questions
What is CVE-2024-34061?
Which Changedetection.io versions are affected?
What version fixes CVE-2024-34061?
Is changedetection.io affected?
What is the CVSS score of CVE-2024-34061?
What CWE is associated with CVE-2024-34061?
How can I check PyPI dependencies for CVE-2024-34061?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pwgc-w4x9-gw67",
"modified" : "2024-05-03T17:53:22Z",
"published" : "2024-05-03T17:53:22Z",
"aliases" : [ "CVE-2024-34061" ],
"summary" : "changedetection.io Cross-site Scripting vulnerability",
"details" : "### Summary\n\nInput in parameter notification_urls is not processed resulting in javascript execution in the application\n\n### Details\nchangedetection.io version: v0.45.21\n\nhttps://github.com/dgtlmoon/changedetection.io/blob/0.45.21/changedetectionio/forms.py#L226\n\n```\n for server_url in field.data:\n if not apobj.add(server_url):\n message = field.gettext('\\'%s\\' is not a valid AppRise URL.' % (server_url))\n raise ValidationError(message)\n```\n\n### PoC\n\nSetting > ADD Notification URL List\n\n\n\n\n```\n\"><img src=x onerror=alert(document.domain)>\n```\n\n\nRequests\n\n\n\n\n### Impact\nA reflected XSS vulnerability happens when the user input from a URL or POST data is reflected on the page without being stored, thus allowing the attacker to inject malicious content\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "changedetection.io"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.45.22"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/dgtlmoon/changedetection.io/security/advisories/GHSA-pwgc-w4x9-gw67"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-34061"
}, {
"type" : "WEB",
"url" : "https://github.com/dgtlmoon/changedetection.io/commit/c0f000b1d1ce03733460805dbbedde445fe2c762"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/dgtlmoon/changedetection.io"
}, {
"type" : "WEB",
"url" : "https://github.com/dgtlmoon/changedetection.io/blob/0.45.21/changedetectionio/forms.py#L226"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-03T17:53:22Z",
"nvd_published_at" : "2024-05-02T14:15:10Z"
}
}