CVE-2024-52290: Github.com/lf edge/ekuiper Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-9cwv-pxcr-hfjc
CVSS 6.3
CWE-79
Published
Advisory Summary

CVE-2024-52290 is a MODERATE (CVSS 6.3) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Github.com/lf edge/ekuiper libraries in the Go ecosystem. The issue involves lf edge ekuiper vulnerable to stored xss in configuration key functionality. Remediation is available by upgrading affected packages to version 2.1.0.

CVE-2024-52290 at a Glance

CVE Identifier CVE-2024-52290
GHSA Identifier GHSA-9cwv-pxcr-hfjc
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Github.com/lf edge/ekuiper
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2024-52290

To remediate this vulnerability, upgrade all affected Github.com/lf edge/ekuiper dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/lf-edge/ekuiper fixed: Latest secure release
Upgrade github.com/lf-edge/ekuiper to Latest secure release
github.com/lf-edge/ekuiper/v2 fixed: 2.1.0
Upgrade github.com/lf-edge/ekuiper/v2 to 2.1.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/lf-edge/ekuiper

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-52290, inspect your project dependencies for Github.com/lf edge/ekuiper:

inspect dependencies for github.com/lf-edge/ekuiper

Analyze the terminal output to locate any version of Github.com/lf edge/ekuiper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

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 Github.com/lf edge/ekuiper, 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

### Summary Stored Cross-Site Scripting (XSS) vulnerability allows attackers to inject malicious scripts into web applications, which can then be executed in the context of other users' browsers. This can lead to unauthorized access to sensitive information, session hijacking, and spreading of malware, impacting user data privacy and application integrity. ### Details A user with rights to modificate the service (e.g. kuiperUser role) can inject XSS Payload into Connection Configuration key `Name` (`confKey`) parameter. Then, after any user with access to this service (e.g. admin) will try to delete this key, a payload will act in victim's browser. ### PoC 1. Authorize as a user with rights to modificate the service (e.g. kuiperUser role). 2. Create a service or go to the existing one and access the *Configuration > Connection* page: ![*Configuration > Connection page](https://github.com/user-attachments/assets/d29cbc23-04a4-4a49-bbd9-b26f74282c5c) 3. Open any existing Connection and press on `Add configuration key`: ![image](https://github.com/user-attachments/assets/623dc76a-076c-41be-98d7-8fd42ed4e8fd) 4. Set any name and Address, then intercept the request and add the following payload to the `confKey` parameter: `123%3Cimg%20src=1%20onerror%3dalert%281%29%3E`: ![image](https://github.com/user-attachments/assets/405000db-ace9-4bca-ac52-7dc44c54a0ae) 5. A new configuration key then will be set: ![image](https://github.com/user-attachments/assets/43b75f1e-81ac-4815-9250-c1a0707827d3) 6. *(Optional)* You can authorize another user with access to this service. For nexe steps I will use admin user 7. After we push on delete button (trash icon) opposite the created connection, the payload will work: ![image](https://github.com/user-attachments/assets/05a38899-343b-4f76-b6c7-8e27587e3cdf) ### Impact Stored Cross-site Scripting (XSS) vulnerability Reported by Alexey Kosmachev, Lead Pentester from Bi.Zone

CVE-2024-52290 Affected Github.com/lf edge/ekuiper Versions

2 component(s)
Fixed Versions:
2.1.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/lf-edge/ekuiper
Go
≤ 1.14.7
github.com/lf-edge/ekuiper/v2
Go
< 2.1.0
2.1.0

References

Frequently Asked Questions

What is CVE-2024-52290?
CVE-2024-52290 is a security vulnerability in Github.com/lf edge/ekuiper involving LF Edge eKuiper Vulnerable to Stored XSS in Configuration Key Functionality under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Github.com/lf edge/ekuiper versions are affected?
Affected versions include releases prior to 2.1.0 across affected packages: github.com/lf-edge/ekuiper, github.com/lf-edge/ekuiper/v2.
What version fixes CVE-2024-52290?
Upgrading to 2.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/lf-edge/ekuiper affected?
Yes, github.com/lf-edge/ekuiper is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
Is github.com/lf-edge/ekuiper/v2 affected?
Yes, github.com/lf-edge/ekuiper/v2 is affected in releases prior to 2.1.0. Upgrade your dependency to 2.1.0 or later.
What is the CVSS score of CVE-2024-52290?
CVE-2024-52290 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N.
What CWE is associated with CVE-2024-52290?
CVE-2024-52290 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Go dependencies for CVE-2024-52290?
Run the dependency tree command: 'inspect dependencies for github.com/lf-edge/ekuiper'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-9cwv-pxcr-hfjc",
  "modified" : "2025-05-14T21:41:26Z",
  "published" : "2025-05-14T21:41:26Z",
  "aliases" : [ "CVE-2024-52290" ],
  "summary" : "LF Edge eKuiper Vulnerable to Stored XSS in Configuration Key Functionality",
  "details" : "### Summary\nStored Cross-Site Scripting (XSS) vulnerability allows attackers to inject malicious scripts into web applications, which can then be executed in the context of other users' browsers. This can lead to unauthorized access to sensitive information, session hijacking, and spreading of malware, impacting user data privacy and application integrity.\n\n### Details\nA user with rights to modificate the service (e.g. kuiperUser role) can inject XSS Payload into Connection Configuration key `Name` (`confKey`) parameter. Then, after any user with access to this service (e.g. admin) will try to delete this key, a payload will act in victim's browser.\n\n### PoC\n1. Authorize as a user with rights to modificate the service (e.g. kuiperUser role).\n2. Create a service or go to the existing one and access the *Configuration > Connection* page:\n\n![*Configuration > Connection page](https://github.com/user-attachments/assets/d29cbc23-04a4-4a49-bbd9-b26f74282c5c)\n\n3. Open any existing Connection and press on `Add configuration key`:\n\n![image](https://github.com/user-attachments/assets/623dc76a-076c-41be-98d7-8fd42ed4e8fd)\n\n4. Set any name and Address, then intercept the request and add the following payload to the `confKey` parameter: `123%3Cimg%20src=1%20onerror%3dalert%281%29%3E`:\n\n![image](https://github.com/user-attachments/assets/405000db-ace9-4bca-ac52-7dc44c54a0ae)\n\n5. A new configuration key then will be set: \n\n![image](https://github.com/user-attachments/assets/43b75f1e-81ac-4815-9250-c1a0707827d3)\n\n6. *(Optional)* You can authorize another user with access to this service. For nexe steps I will use admin user\n7. After we push on delete button (trash icon) opposite the created connection, the payload will work:\n\n![image](https://github.com/user-attachments/assets/05a38899-343b-4f76-b6c7-8e27587e3cdf)\n\n\n### Impact\nStored Cross-site Scripting (XSS) vulnerability\n\nReported by Alexey Kosmachev, Lead Pentester from Bi.Zone",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/lf-edge/ekuiper"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.14.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/lf-edge/ekuiper/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/lf-edge/ekuiper/security/advisories/GHSA-9cwv-pxcr-hfjc"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-52290"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/lf-edge/ekuiper/commit/943c02e10f0f8349e609474810eab5fa460d1a51"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/lf-edge/ekuiper"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-14T21:41:26Z",
    "nvd_published_at" : "2025-05-14T08:15:33Z"
  }
}