CVE-2023-41592: Froala/wysiwyg editor Cross-Site Scripting Vulnerability
MODERATECVE-2023-41592 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Froala/wysiwyg editor libraries in the Packagist ecosystem. The issue involves froala editor cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 4.1.4.
CVE-2023-41592 at a Glance
Security Impact
CVSS: 5.4
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:C/C:L/I:L/A:N).
How to Fix CVE-2023-41592
To remediate this vulnerability, upgrade all affected Froala/wysiwyg editor dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade froala/wysiwyg-editor to 4.1.4
npm install froala-editor@4.1.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for froala/wysiwyg-editor
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-41592, inspect your project dependencies for Froala/wysiwyg editor:
inspect dependencies for froala/wysiwyg-editor
Analyze the terminal output to locate any version of Froala/wysiwyg editor in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.4), 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 Froala/wysiwyg editor, 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-2023-41592 Affected Froala/wysiwyg editor Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
froala/wysiwyg-editor
|
Packagist |
≥ 4.0.1
< 4.1.4
|
4.1.4
|
|
froala-editor
|
npm |
≥ 4.0.1
< 4.1.4
|
4.1.4
|
References
Frequently Asked Questions
What is CVE-2023-41592?
Which Froala/wysiwyg editor versions are affected?
What version fixes CVE-2023-41592?
Is froala/wysiwyg-editor affected?
Is froala-editor affected?
What is the CVSS score of CVE-2023-41592?
What CWE is associated with CVE-2023-41592?
How can I check Packagist dependencies for CVE-2023-41592?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hvpq-7vcc-5hj5",
"modified" : "2025-03-14T14:50:13Z",
"published" : "2023-09-15T00:30:29Z",
"aliases" : [ "CVE-2023-41592" ],
"summary" : "Froala Editor Cross-site Scripting vulnerability",
"details" : "Froala Editor v4.0.1 to v4.1.1 was discovered to contain a cross-site scripting (XSS) vulnerability.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "froala/wysiwyg-editor"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.1"
}, {
"fixed" : "4.1.4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.1.3"
}
}, {
"package" : {
"ecosystem" : "npm",
"name" : "froala-editor"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.1"
}, {
"fixed" : "4.1.4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.1.3"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-41592"
}, {
"type" : "WEB",
"url" : "https://github.com/froala/wysiwyg-editor/issues/4612#issuecomment-1729818089"
}, {
"type" : "WEB",
"url" : "https://froala.com/wysiwyg-editor/changelog/#4.1.4"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/froala/wysiwyg-editor"
}, {
"type" : "WEB",
"url" : "https://hacker.soarescorp.com/cve/2023-41592"
}, {
"type" : "WEB",
"url" : "https://owasp.org/Top10/A03_2021-Injection"
}, {
"type" : "WEB",
"url" : "https://owasp.org/www-project-top-ten"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-09-15T19:02:52Z",
"nvd_published_at" : "2023-09-14T23:15:08Z"
}
}