{"answers":{"affected":"4 open source packages ship an affected version, including ckeditor4 and ckeditor/ckeditor. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-24815 in the wild and no public exploit code.","fix":"Upgrade ckeditor4 to 4.24.0-lts or later.","what":"CVE-2024-24815 is a medium-severity cross-site scripting vulnerability in ckeditor4, published on 7 Feb 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-24815 and fix it if it is affected.\n\nWhat it is: CVE-2024-24815 is a medium-severity cross-site scripting vulnerability in ckeditor4, published on 7 Feb 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-24815 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ckeditor4 (npm): affected all versions; fixed in 4.24.0-lts\n- ckeditor4 (npm): affected all versions; fixed in 4.24.0-lts\n- ckeditor/ckeditor (Packagist): affected all versions; fixed in 4.24.0\n- ckeditor/ckeditor (Packagist): affected all versions; fixed in 4.24.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-24815/ (Markdown: https://insights.sbomify.com/CVE-2024-24815/index.md)","id":"CVE-2024-24815","markdown":"https://insights.sbomify.com/CVE-2024-24815/index.md","name":"CVE-2024-24815","record":{"aliases":["DEBIAN-CVE-2024-24815","GHSA-fq6h-4g8v-qqvm","UBUNTU-CVE-2024-24815","openSUSE-SU-2024:14557-1","openSUSE-SU-2025:0008-1"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"CKEditor4 HTML editor","requires_auth":"none","summary":"Attackers can inject malicious JavaScript via malformed HTML in CKEditor4 when full-page editing or specific CDATA filtering is enabled.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"ckeditor","vendor":"ckeditor"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"CKEditor4 is an open source what-you-see-is-what-you-get HTML editor. A cross-site scripting vulnerability has been discovered in the core HTML parsing module in versions of CKEditor4 prior to 4.24.0-lts. It may affect all editor instances that enabled full-page editing mode or enabled CDATA elements in Advanced Content Filtering configuration (defaults to `script` and `style` elements). The vulnerability allows attackers to inject malformed HTML content bypassing Advanced Content Filtering mechanism, which could result in executing JavaScript code. An attacker could abuse faulty CDATA content detection and use it to prepare an intentional attack on the editor. A fix is available in version 4.24.0-lts.","ecosystems":["Packagist","SUSE:Package Hub 15 SP5","npm","openSUSE:Leap 15.5","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"CKEditor4 Cross-site scripting (XSS) vulnerability caused by incorrect CDATA detection","id":"CVE-2024-24815","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":7,"n_references":6,"next":{"headline":"Cross-site scripting (XSS) vulnerability in samples with enabled the preview feature","id":"CVE-2024-24816"},"packages":[{"ecosystem":"Packagist","fixed":["4.24.0"],"introduced":["0"],"last_affected":[],"package":"ckeditor/ckeditor","purl":null,"source":"GHSA-fq6h-4g8v-qqvm"},{"ecosystem":"Packagist","fixed":["4.24.0"],"introduced":["0"],"last_affected":[],"package":"ckeditor/ckeditor","purl":"pkg:composer/ckeditor/ckeditor","source":"GHSA-fq6h-4g8v-qqvm"},{"ecosystem":"npm","fixed":["4.24.0-lts"],"introduced":["0"],"last_affected":[],"package":"ckeditor4","purl":null,"source":"GHSA-fq6h-4g8v-qqvm"},{"ecosystem":"npm","fixed":["4.24.0-lts"],"introduced":["0"],"last_affected":[],"package":"ckeditor4","purl":"pkg:npm/ckeditor4","source":"GHSA-fq6h-4g8v-qqvm"},{"ecosystem":"SUSE:Package Hub 15 SP5","fixed":["6.7.2-bp155.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-django-ckeditor","purl":"pkg:rpm/suse/python-django-ckeditor\u0026distro=SUSE%20Package%20Hub%2015%20SP5","source":"openSUSE-SU-2025:0008-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["6.7.2-bp155.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-django-ckeditor","purl":"pkg:rpm/opensuse/python-django-ckeditor\u0026distro=openSUSE%20Leap%2015.5","source":"openSUSE-SU-2025:0008-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["6.7.2-1.1"],"introduced":["0"],"last_affected":[],"package":"python-django-ckeditor","purl":"pkg:rpm/opensuse/python-django-ckeditor\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14557-1"}],"prev":{"headline":"Denial of service when manipulating mod_auth_openidc_session_chunks cookie in mod_auth_openidc","id":"CVE-2024-24814"},"products":["ckeditor4"],"published":"2024-02-07","related":[{"cvss_score":9.8,"headline":"File upload in n/a","id":"CVE-2023-31541","kev_date_added":null,"published":"2023-06-13"},{"cvss_score":8.2,"headline":"Advanced Content Filter (ACF) vulnerability allowing to execute JavaScript code using malformed HTML","id":"CVE-2021-41164","kev_date_added":null,"published":"2021-11-17"},{"cvss_score":8.2,"headline":"HTML comments vulnerability allowing to execute JavaScript code","id":"CVE-2021-41165","kev_date_added":null,"published":"2021-11-17"},{"cvss_score":7.6,"headline":"Cross-site scripting in ckeditor via abuse of undo functionality","id":"CVE-2021-32808","kev_date_added":null,"published":"2021-08-12"},{"cvss_score":7.5,"headline":"Missing authorization in CKEditor Drupal module","id":"CVE-2011-4972","kev_date_added":null,"published":"2019-11-13"},{"cvss_score":7.3,"headline":"Execution of JavaScript code using malformed HTML in ckeditor","id":"CVE-2021-37695","kev_date_added":null,"published":"2021-08-12"},{"cvss_score":6.8,"headline":"Code injection in n/a","id":"CVE-2012-2067","kev_date_added":null,"published":"2012-09-05"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["ckeditor"]},"summary":"Attackers can inject malicious JavaScript via malformed HTML in CKEditor4 when full-page editing or specific CDATA filtering is enabled.","url":"https://insights.sbomify.com/CVE-2024-24815/"}