{"id":"CVE-2025-24978","aliases":["CVE-2025-24978","GHSA-g8rh-fjm6-h2h9","GO-2026-6446"],"related":[],"kind":"vulnerability","state":"published","title":"LF Edge eKuiper: Self-XSS in External Service Creation","summary":"### Summary\nA Cross-Site Scripting (XSS) vulnerability in external service creation allows an authenticated attacker to inject HTML/script payloads into external service names, which may execute in a user's browser when rendered by administrative web interfaces.\n\n### Details\nPrior to v2.4.0, external service registration endpoints did not strictly enforce alphanumeric character restrictions on service names. An operator or attacker with API access could register a service using a crafted name containing HTML elements (such as `<iframe src=\"...\">`). If an administrative web UI rendered the unescaped service name, arbitrary script execution could occur in the context of the user's browser session.\n\n### PoC\n1. Create an external service JSON definition with a filename containing an XSS payload, e.g. `<iframe src=\"javascript:alert`1337`\">.json` inside a ZIP archive.\n2. In external service creation, upload the ZIP and provide the matching service name: `<iframe src=\"javascript:alert`1337`\">`.\n3. Upon service registration, the unescaped name executes when rendered in the UI context.\n\n### Impact\nSelf-XSS / Stored XSS leading to potential session token leakage or unauthorized actions in the context of the affected user's browser session.\n\n### Remediation & Patches\n- **Upgrade to eKuiper >= 2.4.0**: Strict alphanumeric identifier validation (`validate.ValidateID`) is now enforced on all external service creation and update endpoints, rejecting invalid characters.\n\n### Workarounds\n- Protect eKuiper management endpoints (`POST /services`) with authentication and network-level firewalls.\n\n### Credits\n- Reported by Alexey Kosmachev, Bi.Zone (@TheMostKnown)","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Summary\nA Cross-Site Scripting (XSS) vulnerability in external service creation allows an authenticated attacker to inject HTML/script payloads into external service names, which may execute in a user's browser when rendered by administrative web interfaces.\n\n### Details\nPrior to v2.4.0, external service registration endpoints did not strictly enforce alphanumeric character restrictions on service names. An operator or attacker with API access could register a service using a crafted name containing HTML elements (such as `<iframe src=\"...\">`). If an administrative web UI rendered the unescaped service name, arbitrary script execution could occur in the context of the user's browser session.\n\n### PoC\n1. Create an external service JSON definition with a filename containing an XSS payload, e.g. `<iframe src=\"javascript:alert`1337`\">.json` inside a ZIP archive.\n2. In external service creation, upload the ZIP and provide the matching service name: `<iframe src=\"javascript:alert`1337`\">`.\n3. Upon service registration, the unescaped name executes when rendered in the UI context.\n\n### Impact\nSelf-XSS / Stored XSS leading to potential session token leakage or unauthorized actions in the context of the affected user's browser session.\n\n### Remediation & Patches\n- **Upgrade to eKuiper >= 2.4.0**: Strict alphanumeric identifier validation (`validate.ValidateID`) is now enforced on all external service creation and update endpoints, rejecting invalid characters.\n\n### Workarounds\n- Protect eKuiper management endpoints (`POST /services`) with authentication and network-level firewalls.\n\n### Credits\n- Reported by Alexey Kosmachev, Bi.Zone (@TheMostKnown)","format":"markdown","source":"ghsa"},{"lang":"en","text":"LF Edge eKuiper: Self-XSS in External Service Creation in github.com/lf-edge/ekuiper","format":"markdown","source":"go"}],"published":"2026-09-09T17:56:22.000Z","modified":"2026-09-17T17:40:43.036Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","score":3.7,"rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","score":3.7,"rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.4.0"}],"ecosystem":"Go","package":"github.com/lf-edge/ekuiper/v2","purl":"pkg:golang/github.com/lf-edge/ekuiper/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/lf-edge/ekuiper","purl":"pkg:golang/github.com/lf-edge/ekuiper","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.4.0"}],"ecosystem":"Go","package":"github.com/lf-edge/ekuiper/v2","purl":"pkg:golang/github.com/lf-edge/ekuiper/v2","source":"go"}],"references":[{"url":"https://github.com/lf-edge/ekuiper/security/advisories/GHSA-g8rh-fjm6-h2h9","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/lf-edge/ekuiper","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/lf-edge/ekuiper/releases/tag/v2.4.0","tags":["web"],"sources":["ghsa","go"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g8rh-fjm6-h2h9","url":"https://github.com/advisories/GHSA-g8rh-fjm6-h2h9","licence":"CC-BY-4.0","modified":"2026-09-17T17:40:43.036Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6446","url":"https://pkg.go.dev/vuln/GO-2026-6446","licence":"CC-BY-4.0","modified":"2026-09-17T17:30:11.273Z"}],"updatedAt":"2026-11-25T22:56:25.377Z"}