CSV Injection Vulnerability
Published 18 Oct 2021 · Updated 8 Jul 2026
Affected package
- Affected
- >=3.4.0 <3.7.14
- Fixed in
- 3.7.14
composer require craftcms/cms:^3.7.14Details
Impact
In some circumstances, it was possible to export data in CSV format that could trigger a payload in old versions of Excel.
If you are accepting user input from untrusted sources and will be exporting that data in CSV format from element index pages and there is a chance users will open that on old versions of Excel, then you should update.
Patches
This has been patched in Craft 3.7.14.
References
- https://github.com/craftcms/cms/blob/develop/CHANGELOG.md#3714---2021-09-28
- https://twitter.com/craftcmsupdates/status/1442928690145366018
For more information
If you have any questions or comments about this advisory, email us at support@craftcms.com
----------
Credits: BAE Systems AI Vulnerability Research Team – Azrul Ikhwan Zulkifli
Is GHSA-h7vq-5qgw-jwwq in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected craftcms/cms, and gives you the command that fixes it.
References
- Linkgithub.com/craftcms/cms/security/advisories/GHSA-h7vq-5qgw-jwwq
- Advisorynvd.nist.gov/vuln/detail/CVE-2021-41824
- Linkgithub.com/craftcms/cms/commit/c9cb2225f1b908fb1e8401d401219228634b26b2
- Packagegithub.com/craftcms/cms
- Linkgithub.com/craftcms/cms/blob/develop/CHANGELOG.md#3714---2021-09-28
- Linktwitter.com/craftcmsupdates/status/1442928690145366018
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.