View Issue Details

IDProjectCategoryView StatusLast Update
0036991mantisbtsecuritypublic2026-03-23 08:48
Reporterdregad Assigned Todregad  
PriorityhighSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.25.3 
Target Version2.28.2Fixed in Version2.28.2 
Summary0036991: Improve protection against CSV injection
Description

Issue 0029130 introduced an option to reduce risk of CSV injection.

The original fix works as-is, but according to OWASP [1], when prefixing a string with tab to avoid CSV injection, the string should always be quoted.

TagsNo tags attached.

Relationships

related to 0029130 closeddregad CVE-2021-43257: CSV Injection with CSV Export Feature 

Activities

Related Changesets

MantisBT: master-2.28 65c2dd3e

2026-03-19 14:29

dregad


Details Diff
Always quote tab-prefixed CSV string when escaping

According to OWASP [1], when prefixing a string with tab to avoid CSV
injection, the string should always be quoted.

Improves fix for Issue 0029130.

Fixes 0036991

[1]: https://owasp.org/www-community/attacks/CSV_Injection#excel-resistant-mitigation
Affected Issues
0029130, 0036991
mod - core/csv_api.php Diff File