{"id":"CVE-2026-133178","state":"PUBLISHED","title":"CSV Formula Injection in Case and Task Exports in flowintel","description":"flowintel allows users with editor-level access to author case and task fields, including aggregated tags. When these records are exported as CSV, the field values are written verbatim into the output file.\n\nBecause no sanitisation is applied to user-supplied text before CSV serialisation, an attacker can store values that begin with spreadsheet formula triggers (such as =, +, -, @, or their fullwidth Unicode equivalents, or leading control/whitespace characters). When a victim opens the exported CSV in a spreadsheet application (e.g. Microsoft Excel, LibreOffice Calc), the stored text is interpreted and executed as a live formula rather than displayed as literal text.\n\nThis can lead to unintended data manipulation within the spreadsheet, potential data exfiltration via formula functions, or execution of downstream commands depending on the spreadsheet application and its configuration.\n\nThe vulnerability requires the victim to actively open the CSV file in a spreadsheet application; the flowintel application itself is not directly compromised.\n\nAffected: <4.1.0","publishedAt":"2026-11-19T14:11:56.276Z","updatedAt":"2026-11-19T14:46:40.447Z","severity":{"score":4.8,"label":"Medium","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","source":"CIRCL"},"assigner":"CIRCL","products":["flowintel flowintel"],"affected":[{"vendor":"flowintel","product":"flowintel","versions":[{"version":"0","status":"affected","lessThanOrEqual":"4.0.0","versionType":"semver"}],"cpes":["cpe:2.3:a:flowintel:flowintel:*:*:*:*:*:*:*:*"],"modules":["app/tools/tools.py (_cases_to_csv)","app/utils/csv_utils.py (new)"],"programFiles":["app/tools/tools.py","app/utils/csv_utils.py"],"repo":"https://github.com/flowintel/flowintel"}],"references":["https://github.com/flowintel/flowintel/commit/adef89f5c82729da7bdf1c25b32ba8660b8376d5"],"weaknesses":["CWE-147","CWE-116"],"ingestedAt":"2026-11-19T14:58:05.750Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/133xxx/CVE-2026-133178.json","commit":"b9804d6888d88c212ca13d9c1a2ebfec992b78fc","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-133178","state":"PUBLISHED","datePublished":"2026-11-19T14:11:56.276Z","dateUpdated":"2026-11-19T14:46:40.447Z","assignerShortName":"CIRCL","assignerOrgId":"5a6e4751-2f3f-4070-9419-94fb35b644e8","dateReserved":"2026-11-19T14:11:54.087Z"},"containers":{"cna":{"title":"CSV Formula Injection in Case and Task Exports in flowintel","descriptions":[{"lang":"en","value":"flowintel allows users with editor-level access to author case and task fields, including aggregated tags. When these records are exported as CSV, the field values are written verbatim into the output file.\n\nBecause no sanitisation is applied to user-supplied text before CSV serialisation, an attacker can store values that begin with spreadsheet formula triggers (such as =, +, -, @, or their fullwidth Unicode equivalents, or leading control/whitespace characters). When a victim opens the exported CSV in a spreadsheet application (e.g. Microsoft Excel, LibreOffice Calc), the stored text is interpreted and executed as a live formula rather than displayed as literal text.\n\nThis can lead to unintended data manipulation within the spreadsheet, potential data exfiltration via formula functions, or execution of downstream commands depending on the spreadsheet application and its configuration.\n\nThe vulnerability requires the victim to actively open the CSV file in a spreadsheet application; the flowintel application itself is not directly compromised.\n\nAffected: <4.1.0"}],"affected":[{"vendor":"flowintel","product":"flowintel","versions":[{"version":"0","status":"affected","lessThanOrEqual":"4.0.0","versionType":"semver"}],"cpes":["cpe:2.3:a:flowintel:flowintel:*:*:*:*:*:*:*:*"],"modules":["app/tools/tools.py (_cases_to_csv)","app/utils/csv_utils.py (new)"],"programFiles":["app/tools/tools.py","app/utils/csv_utils.py"],"repo":"https://github.com/flowintel/flowintel"}],"references":[{"url":"https://github.com/flowintel/flowintel/commit/adef89f5c82729da7bdf1c25b32ba8660b8376d5","name":"Security patch","tags":["patch"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","baseScore":4.8,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"ACTIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","subAvailabilityImpact":"NONE","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}},{"format":"SSVC","scenarios":[{"lang":"en","value":"GENERAL"}],"other":{"type":"SSVC","content":{"version":"2.0.3","role":"Supplier","timestamp":"2026-11-18T14:21:36Z","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}]}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-147","lang":"en","description":"CWE-147 Improper Neutralization of Input with Special Element Used for a Spreadsheet (CSV and DSL)","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-116","lang":"en","description":"CWE-116 Improper Encoding or Escaping of Output","type":"CWE"}]}],"providerMetadata":{"shortName":"CIRCL","orgId":"5a6e4751-2f3f-4070-9419-94fb35b644e8","dateUpdated":"2026-11-19T14:11:56.276Z"},"solutions":[{"lang":"en","value":"A shared CSV cell formatter (csv_safe_cell) is introduced that detects formula-like strings—those beginning with =, +, -, @, their fullwidth Unicode variants, or leading control/whitespace characters—and prefixes them with an apostrophe so spreadsheet applications treat the content as literal text. All case and task CSV export rows now pass every cell value through this formatter before writing, while numeric and ordinary text values are left unchanged."}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:flowintel:flowintel:*:*:*:*:*:*:*:*"}]}]}],"credits":[{"lang":"en","value":"elhoim","type":"reporter"},{"lang":"en","value":"David Cruciani","type":"remediation developer"}],"impacts":[{"capecId":"CAPEC-117","descriptions":[{"lang":"en","value":"CAPEC-117 CSV Injection"}]}],"x_gcve":[{"vulnId":"gcve-1-2026-20316","recordType":"advisory","extensions":{"bcp-05-x-01":{"ai_annotations":[{"scope":"record","gna_source":1,"tags":["ai-computer-assisted:llm-generated","ai-computer-assisted:classification"],"description":"Draft vulnerability metadata was generated from a git-format patch using an Ollama-hosted language model. Human validation is required before publication.","ai_level":"generated","review_status":"full","models":[{"name":"qwen3.8:27b","gna_source":1,"source":"ollama","identifier":"qwen3.8:27b"}]}]},"bcp-05-x-02":{"x_patch2vuln":{"generator":"patch2vuln.py","generatedAt":"2026-11-18T14:21:36.786654Z","model":"qwen3.8:27b","source":"https://github.com/flowintel/flowintel/commit/adef89f5c82729da7bdf1c25b32ba8660b8376d5.patch","patchSha256":"5c27997cbe9fc0f551792f71c7bdae7d1eeaa6b849afcc78c0a6cf8af12dcf06","patchTruncated":false,"commit":"adef89f5c82729da7bdf1c25b32ba8660b8376d5","subject":"fix: [security] Neutralise formulas in case and task CSV","patches":[{"source":"https://github.com/flowintel/flowintel/commit/adef89f5c82729da7bdf1c25b32ba8660b8376d5.patch","sourceUrl":"https://github.com/flowintel/flowintel/commit/adef89f5c82729da7bdf1c25b32ba8660b8376d5.patch","patchSha256":"5c27997cbe9fc0f551792f71c7bdae7d1eeaa6b849afcc78c0a6cf8af12dcf06","commit":"adef89f5c82729da7bdf1c25b32ba8660b8376d5","subject":"fix: [security] Neutralise formulas in case and task CSV","date":"Fri, 6 Nov 2026 10:54:23 +0100","retrievedAt":"2026-11-18T14:21:08.763444Z"}],"confidence":"high","assumptions":["The affected version range is not explicitly stated in the patch; the metadata field 'affected_version' contains the placeholder value '0'. All versions prior to commit adef89f5 are assumed affected.","PR:L assumes the attacker needs at least editor-level access to create or modify case/task fields, based on the editor_required decorator visible in the surrounding code. If the application allows unauthenticated case creation, PR would be N.","The CVSS secondary-scope impact (SC:L, SI:L) assumes the victim's spreadsheet application executes injected formulas; actual impact depends on the specific application and its security settings.","CAPEC-117 (CSV Injection) is selected as the closest match; if this CAPEC ID is not present in the target CAPEC version, CAPEC-66 (Leverage Executable Code) would be the next-best alternative.","The fullwidth Unicode formula triggers (＝, ＋, －, ＠) are included in the fix, suggesting the developers considered non-ASCII bypass vectors; the CVSS does not separately account for this as it does not change the base score."],"fixSummary":"A shared CSV cell formatter (csv_safe_cell) is introduced that detects formula-like strings—those beginning with =, +, -, @, their fullwidth Unicode variants, or leading control/whitespace characters—and prefixes them with an apostrophe so spreadsheet applications treat the content as literal text. All case and task CSV export rows now pass every cell value through this formatter before writing, while numeric and ordinary text values are left unchanged.","patchSummary":"New file app/utils/csv_utils.py defines csv_safe_cell(value) which returns an empty string for None, prepends an apostrophe to strings that start with tab/CR/LF or whose lstrip()-ed form begins with =, +, -, @, or fullwidth equivalents (＝, ＋, －, ＠), and otherwise returns the value unchanged. In app/tools/tools.py the _cases_to_csv function is modified so that both case rows and task rows are wrapped with a dict comprehension applying csv_safe_cell to every field before writer.writerow. The user manual (doc/user-manual.md) gains a note explaining the apostrophe-prefixing behaviour and that JSON exports preserve original text.","credits":[{"lang":"en","value":"elhoim","type":"reporter"},{"lang":"en","value":"David Cruciani","type":"remediation developer"}],"cvssRationale":"AV:N – exploitation occurs over the network via the web interface. AC:L – crafting formula-like text requires no special conditions. AT:N – no specific attack prerequisites. PR:L – the attacker needs editor-level access to create or modify case/task fields. UI:A – the victim must actively open the CSV in a spreadsheet application for the formula to execute. VC/VI/VA:N – the primary system (flowintel) suffers no direct confidentiality, integrity, or availability impact. SC:L – the secondary system (spreadsheet) may leak data via formula functions. SI:L – the secondary system's data integrity can be altered by injected formulas. SA:N – no availability impact on the secondary system.","ssvc":{"version":"2.0.3","role":"Supplier","timestamp":"2026-11-18T14:21:36Z","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}]},"weaknessRationale":[{"cweId":"CWE-147","rationale":"The patch directly addresses the case where user-controlled text is written into a CSV file without neutralising spreadsheet formula triggers (=, +, -, @, fullwidth variants, control characters). This is the exact definition of CWE-147."},{"cweId":"CWE-116","rationale":"More broadly, the CSV output encoding did not escape or neutralise special characters that carry meaning in the downstream consumer (spreadsheet application), fitting the general CWE-116 category."}],"capecRationale":[{"capecId":"CAPEC-117","rationale":"The patch neutralises spreadsheet formula injection via CSV export, which is the canonical CSV Injection attack pattern. An attacker stores formula-like text in application fields; when the CSV is opened in a spreadsheet, the formula executes. CAPEC-117 is the most specific and directly applicable pattern. Confidence is high because the commit message, code changes, and documentation all explicitly reference spreadsheet formula neutralisation in CSV output."}],"modelComparison":{"selectedModel":"qwen3.8:27b","selectionMethod":"deterministic-consensus-v1","selectionNotice":"The selected result is closest to model consensus; this heuristic does not establish factual correctness and human review remains required.","rankings":[{"model":"qwen3.8:27b","score":8,"agreementScore":11,"confidence":"high","assumptionCount":5}],"potentialErrors":[]}}},"bcp-05-x-03":{"x_timeline":{"events":[{"type":"fix-developed","timestamp":"2026-11-06T09:54:23Z","description":"Corrective change authored (adef89f5c82729da7bdf1c25b32ba8660b8376d5): fix: [security] Neutralise formulas in case and task CSV","references":["https://github.com/flowintel/flowintel/commit/adef89f5c82729da7bdf1c25b32ba8660b8376d5.patch"],"id":"evt-fix-developed-1"},{"id":"evt-fix-available-1","type":"fix-available","timestamp":"2026-11-18T14:21:08.763444Z","description":"Patch retrieved from the supplied URL; retrieval time is used as the default availability time.","references":["https://github.com/flowintel/flowintel/commit/adef89f5c82729da7bdf1c25b32ba8660b8376d5.patch"]}]}}}}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-19T14:46:27.278959Z","id":"CVE-2026-133178","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-19T14:46:40.447Z"}}]}}}