CVE-2024-55227: Dolibarr/dolibarr Cross-Site Scripting Vulnerability
LOWCVE-2024-55227 is a LOW cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Dolibarr/dolibarr libraries in the Packagist ecosystem. The issue involves dolibarr cross-site scripting vulnerability. Remediation is available in the latest vendor maintenance releases.
CVE-2024-55227 at a Glance
How to Fix CVE-2024-55227
To remediate this vulnerability, upgrade all affected Dolibarr/dolibarr 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 dolibarr/dolibarr to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for dolibarr/dolibarr
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-55227, inspect your project dependencies for Dolibarr/dolibarr:
inspect dependencies for dolibarr/dolibarr
Analyze the terminal output to locate any version of Dolibarr/dolibarr in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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 Dolibarr/dolibarr, 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-55227 Affected Dolibarr/dolibarr Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
dolibarr/dolibarr
|
Packagist |
21.0.0-beta
All 1 versions
21.0.0-beta
|
None specified
|
References
Frequently Asked Questions
What is CVE-2024-55227?
Which Dolibarr/dolibarr versions are affected?
What version fixes CVE-2024-55227?
Is dolibarr/dolibarr affected?
What CWE is associated with CVE-2024-55227?
How can I check Packagist dependencies for CVE-2024-55227?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2v3r-gvq5-qqgh",
"modified" : "2025-01-27T20:50:34Z",
"published" : "2025-01-27T18:32:01Z",
"aliases" : [ "CVE-2024-55227" ],
"summary" : "Dolibarr Cross-site Scripting vulnerability",
"details" : "A cross-site scripting (XSS) vulnerability in the Events/Agenda module of Dolibarr v21.0.0-beta allows attackers to execute arbitrary web scripts or HTMl via a crafted payload injected into the Title parameter.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "dolibarr/dolibarr"
},
"versions" : [ "21.0.0-beta" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-55227"
}, {
"type" : "WEB",
"url" : "https://github.com/Dolibarr/dolibarr/commit/56710ce9b79a97df093f586c90bdaf6cce6a5808"
}, {
"type" : "WEB",
"url" : "https://github.com/Dolibarr/dolibarr/commit/9aa24d9d9aeab36358c725dae3fe20c9631082e7"
}, {
"type" : "WEB",
"url" : "https://github.com/Dolibarr/dolibarr/commit/c0250e4c9106b5c889e512a4771f0205d4f99b99"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/Dqtdqt/9762466cd6ec541ea265ba33b09489ff"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Dolibarr/dolibarr"
}, {
"type" : "WEB",
"url" : "https://github.com/Dolibarr/dolibarr/security/policy"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-01-27T20:50:34Z",
"nvd_published_at" : "2025-01-27T17:15:16Z"
}
}