CVE-2024-9148: Flowise embed Cross-Site Scripting Vulnerability
MODERATECVE-2024-9148 is a MODERATE (CVSS 9.6) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Flowise embed libraries in the npm ecosystem. The issue involves flowise and flowise chat embed vulnerable to stored cross-site scripting. Remediation is available by upgrading affected packages to version 2.0.0, 2.1.1.
CVE-2024-9148 at a Glance
Security Impact
CVSS: 9.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H).
How to Fix CVE-2024-9148
To remediate this vulnerability, upgrade all affected Flowise embed dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install flowise-embed@2.0.0
npm install flowise@2.1.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls flowise-embed
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-9148, inspect your project dependencies using npm:
npm ls flowise-embed
Analyze the terminal output to locate any version of Flowise embed in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0), your application is affected.
Note: The npm ls flowise-embed command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
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 Flowise embed, 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
CVE-2024-9148 Affected Flowise embed Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
flowise-embed
|
npm |
< 2.0.0
|
2.0.0
|
|
flowise
|
npm |
< 2.1.1
|
2.1.1
|
References
Frequently Asked Questions
What is CVE-2024-9148?
Which Flowise embed versions are affected?
What version fixes CVE-2024-9148?
Is flowise-embed affected?
Is flowise affected?
What is the CVSS score of CVE-2024-9148?
What CWE is associated with CVE-2024-9148?
How can I check npm dependencies for CVE-2024-9148?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m5p9-xvxj-64c8",
"modified" : "2024-09-30T20:56:48Z",
"published" : "2024-09-25T03:30:36Z",
"aliases" : [ "CVE-2024-9148" ],
"summary" : "Flowise and Flowise Chat Embed vulnerable to Stored Cross-site Scripting",
"details" : "Flowise < 2.1.1 suffers from a Stored Cross-Site vulnerability due to a lack of input sanitization in Flowise Chat Embed < 2.0.0.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "flowise-embed"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "flowise"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.1.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-9148"
}, {
"type" : "WEB",
"url" : "https://github.com/FlowiseAI/Flowise/commit/8375ebb4ec1ebb2b1295561cc0f63486a29f3fde"
}, {
"type" : "WEB",
"url" : "https://github.com/FlowiseAI/FlowiseChatEmbed/commit/6a9645df41371cb69f251038d501ec87b1304c84"
}, {
"type" : "WEB",
"url" : "https://github.com/FlowiseAI/Flowise/releases/tag/flowise%402.1.1"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/FlowiseAI/FlowiseChatEmbed"
}, {
"type" : "WEB",
"url" : "https://github.com/FlowiseAI/FlowiseChatEmbed/releases/tag/flowise-embed%402.0.0"
}, {
"type" : "WEB",
"url" : "https://www.tenable.com/security/research/tra-2024-40"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-30T20:56:48Z",
"nvd_published_at" : "2024-09-25T01:15:49Z"
}
}