{"answers":{"affected":"6 open source packages ship an affected version, including github.com/lf-edge/ekuiper and github.com/lf-edge/ekuiper/v2.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-52812 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2024-52812 is a medium-severity cross-site scripting vulnerability in lf-edge ekuiper, published on 10 Mar 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-52812 and fix it if it is affected.\n\nWhat it is: CVE-2024-52812 is a medium-severity cross-site scripting vulnerability in lf-edge ekuiper, published on 10 Mar 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-52812 exists.\n\nAffected packages and fixed versions:\n- github.com/lf-edge/ekuiper (Go): affected all versions; no fix listed\n- github.com/lf-edge/ekuiper (Go): affected all versions up to 1.14.7; no fix listed\n- github.com/lf-edge/ekuiper (Go): affected all versions up to 1.14.7; no fix listed\n- github.com/lf-edge/ekuiper/v2 (Go): affected all versions; fixed in 2.0.8\n- github.com/lf-edge/ekuiper/v2 (Go): affected all versions; fixed in 2.0.8\n- github.com/lf-edge/ekuiper/v2 (Go): affected all versions; fixed in 2.0.8\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-52812/ (Markdown: https://insights.sbomify.com/CVE-2024-52812/index.md)","id":"CVE-2024-52812","markdown":"https://insights.sbomify.com/CVE-2024-52812/index.md","name":"CVE-2024-52812","record":{"aliases":["GHSA-6hrw-x7pr-4mp8","GO-2025-3508"],"analysis":{"component_type":"iot_embedded","fix_type":"upgrade","impacts":["account_takeover","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"IoT stream processing engine","requires_auth":"low_privilege","summary":"An attacker with rule modification rights can inject XSS payloads into rule IDs, allowing them to execute scripts in the browsers of other users, including administrators.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"LF Edge eKuiper is an internet-of-things data analytics and stream processing engine. Prior to version 2.0.8, auser with rights to modify the service (e.g. kuiperUser role) can inject a cross-site scripting payload into the rule `id` parameter. Then, after any user with access to this service (e.g. admin) tries make any modifications with the rule (update, run, stop, delete), a payload acts in the victim's browser. Version 2.0.8 fixes the issue.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"LF Edge eKuiper has Stored XSS in Rules Functionality","id":"CVE-2024-52812","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":6,"n_references":8,"next":{"headline":"matrix-sdk-crypto missing facility to signal rotation of a verified cryptographic identity","id":"CVE-2024-52813"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/lf-edge/ekuiper","purl":"pkg:golang/github.com/lf-edge/ekuiper","source":"GO-2025-3508"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.14.7"],"package":"github.com/lf-edge/ekuiper","purl":null,"source":"GHSA-6hrw-x7pr-4mp8"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.14.7"],"package":"github.com/lf-edge/ekuiper","purl":"pkg:golang/github.com/lf-edge/ekuiper","source":"GHSA-6hrw-x7pr-4mp8"},{"ecosystem":"Go","fixed":["2.0.8"],"introduced":["0"],"last_affected":[],"package":"github.com/lf-edge/ekuiper/v2","purl":null,"source":"GHSA-6hrw-x7pr-4mp8"},{"ecosystem":"Go","fixed":["2.0.8"],"introduced":["0"],"last_affected":[],"package":"github.com/lf-edge/ekuiper/v2","purl":"pkg:golang/github.com/lf-edge/ekuiper/v2","source":"GHSA-6hrw-x7pr-4mp8"},{"ecosystem":"Go","fixed":["2.0.8"],"introduced":["0"],"last_affected":[],"package":"github.com/lf-edge/ekuiper/v2","purl":"pkg:golang/github.com/lf-edge/ekuiper/v2","source":"GO-2025-3508"}],"prev":{"headline":"Acks not validated before logged to qlog leads to buffer overflow in ngtcp2","id":"CVE-2024-52811"},"products":["ekuiper"],"published":"2025-03-10","related":[],"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":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-03-11","vendors":["lf-edge"]},"summary":"An attacker with rule modification rights can inject XSS payloads into rule IDs, allowing them to execute scripts in the browsers of other users, including administrators.","url":"https://insights.sbomify.com/CVE-2024-52812/"}