# CVE-2025-24978: LF Edge eKuiper: Self-XSS in External Service Creation

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **CWE:** CWE-79
- **Aliases:** GHSA-g8rh-fjm6-h2h9, GO-2026-6446
- **Published:** 2026-09-09T17:56:22.000Z
- **Modified:** 2026-09-17T17:40:43.036Z

## Who should check

- Projects that depend on Go package github.com/lf-edge/ekuiper/v2 (\< 2.4.0)
- Projects that depend on Go package github.com/lf-edge/ekuiper

## Description

\#\#\# Summary
A 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.

\#\#\# Details
Prior 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.

\#\#\# PoC
1. 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.
2. In external service creation, upload the ZIP and provide the matching service name: \`\<iframe src="javascript:alert\`1337\`"\>\`.
3. Upon service registration, the unescaped name executes when rendered in the UI context.

\#\#\# Impact
Self-XSS / Stored XSS leading to potential session token leakage or unauthorized actions in the context of the affected user's browser session.

\#\#\# Remediation & Patches
- \*\*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.

\#\#\# Workarounds
- Protect eKuiper management endpoints (\`POST /services\`) with authentication and network-level firewalls.

\#\#\# Credits
- Reported by Alexey Kosmachev, Bi.Zone (@TheMostKnown)

## Affected and fixed versions

- Go `github.com/lf-edge/ekuiper/v2`: affected \< 2.4.0; fixed 2.4.0 (osv)
- Go `github.com/lf-edge/ekuiper`: affected see advisory; fixed no fix listed yet (osv)

## Mitigation

- Upgrade github.com/lf-edge/ekuiper/v2 to 2.4.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-24978. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-24978.md
Affected: github.com/lf-edge/ekuiper/v2 < 2.4.0; github.com/lf-edge/ekuiper
Fixed in: 2.4.0

Steps:
1. Search this machine and project for github.com/lf-edge/ekuiper/v2 (Go), github.com/lf-edge/ekuiper (Go): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-24978 being exploited?

There is no confirmed exploitation: CVE-2025-24978 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2025-24978?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-24978?

github.com/lf-edge/ekuiper/v2 \< 2.4.0; github.com/lf-edge/ekuiper.

### Is there a fix for CVE-2025-24978?

Yes. Fixed in 2.4.0. Upgrade github.com/lf-edge/ekuiper/v2 to 2.4.0 or later.

### How do I check if I'm affected by CVE-2025-24978?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/lf-edge/ekuiper/security/advisories/GHSA-g8rh-fjm6-h2h9>
- other: <https://github.com/lf-edge/ekuiper>
- other: <https://github.com/lf-edge/ekuiper/releases/tag/v2.4.0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-g8rh-fjm6-h2h9> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-6446> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-24978> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-24978>
