Skip to main content
Vulnerability Database/CVE-2026-49850

CVE-2026-49850: InvoicePlane CSRF Vulnerability

CVE-2026-49850 is a cross-site request forgery flaw in InvoicePlane that enables attackers to delete invoices and tax records without administrator consent. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-49850 Overview

InvoicePlane is a self-hosted open source application for managing invoices, clients, and payments. Versions prior to 1.7.2 expose the Invoices::delete() and Invoices::delete_invoice_tax() methods as state-changing routes without requiring a POST request or validating a Cross-Site Request Forgery (CSRF) token. An authenticated administrator who loads attacker-controlled content triggering an affected route can cause the application to delete invoice or invoice tax records without intent. The flaw is tracked under [CWE-22] and is fixed in InvoicePlane 1.7.2.

Critical Impact

Cross-origin requests can silently delete financial records from InvoicePlane when an administrator visits attacker-controlled content.

Affected Products

  • InvoicePlane versions prior to 1.7.2
  • Invoices::delete() controller route
  • Invoices::delete_invoice_tax() controller route

Discovery Timeline

  • 2026-09-25 - CVE-2026-49850 published to NVD
  • 2026-09-28 - Last updated in NVD database

Technical Details for CVE-2026-49850

Vulnerability Analysis

The vulnerability is a Cross-Site Request Forgery (CSRF) flaw in InvoicePlane's invoice management controller. The Invoices::delete() and Invoices::delete_invoice_tax() methods perform destructive database operations but accept requests via HTTP GET and do not validate a CSRF token. An attacker can craft a page or email containing an image tag, iframe, or link that references the vulnerable endpoints. When an authenticated administrator loads that content, the browser automatically attaches the active session cookie, and the application executes the deletion. The result is removal of invoice records or invoice tax entries without administrator consent, which affects the integrity and availability of financial data.

Root Cause

The controller methods were defined as state-changing routes without enforcing the HTTP method or verifying a CSRF token. InvoicePlane relied on session authentication alone, which does not protect against cross-origin requests that reuse an existing session.

Attack Vector

Exploitation requires an authenticated administrator session and user interaction with attacker-controlled content. The attacker sends a link, embeds a malicious resource, or hosts a page that triggers requests to the vulnerable endpoints. The target InvoicePlane instance must be reachable from the administrator's browser.

php
// Patch excerpt - application/modules/invoices/controllers/Invoices.php
        parent::__construct();

        $this->load->helper('file_security');
+        $this->load->helper('security');
        $this->load->model('mdl_invoices');
    }

+    private function ensure_valid_post_request(string $redirect_url): bool
+    {
+        if ($this->input->method(true) !== 'POST') {
+            $this->session->set_flashdata('alert_error', trans('invalid_request'));
+            redirect($redirect_url);
+
+            return false;
+        }
+
+        if ( ! verify_csrf_token()) {
+            $this->session->set_flashdata('alert_error', trans('invalid_request'));
+            redirect($redirect_url);
+
+            return false;
+        }
+
+        return true;
+    }

Source: GitHub Commit 2f426e3. The patch introduces ensure_valid_post_request(), which rejects any request that is not an HTTP POST or lacks a valid CSRF token.

Detection Methods for CVE-2026-49850

Indicators of Compromise

  • Unexpected deletions of invoice records or invoice tax entries in InvoicePlane audit logs or database history.
  • Web server access logs showing GET requests to /invoices/delete/* or /invoices/delete_invoice_tax/* sourced from external Referer headers.
  • Administrator session activity immediately following access to untrusted web content or email.

Detection Strategies

  • Review web server and application logs for requests to deletion endpoints that originate from off-domain Referer headers or lack an application-generated CSRF token parameter.
  • Compare invoice counts and tax entries against backups to identify unexplained removals.
  • Correlate administrator browsing activity with timestamps of record deletions.

Monitoring Recommendations

  • Enable verbose access logging on the InvoicePlane web server and retain logs for forensic review.
  • Monitor database row counts for the invoices and invoice tax tables and alert on sudden decreases.
  • Track administrator session activity across browsers to spot cross-origin exploitation attempts.

How to Mitigate CVE-2026-49850

Immediate Actions Required

  • Upgrade InvoicePlane to version 1.7.2, which enforces POST method and CSRF token validation on deletion endpoints.
  • Terminate active administrator sessions and require re-authentication after patching.
  • Audit recent invoice and tax record changes to identify unauthorized deletions.

Patch Information

The fix is included in the InvoicePlane v1.7.2 Release. The code change is documented in the GitHub Security Advisory GHSA-mhvh-4j3w-7pvj and applied in commit 2f426e3.

Workarounds

  • Restrict access to the InvoicePlane administrative interface to trusted networks or VPN clients until patching is complete.
  • Instruct administrators to use dedicated browsers or isolated profiles for InvoicePlane sessions and to log out when not actively using the application.
  • Deploy a web application firewall rule that blocks GET requests to /invoices/delete/ and /invoices/delete_invoice_tax/ paths.
bash
# Example WAF rule concept - block GET requests to deletion endpoints
# ModSecurity-style pseudo-rule
SecRule REQUEST_METHOD "@streq GET" \
  "id:1004985,phase:1,deny,status:403,\
   chain,msg:'Block GET on InvoicePlane deletion endpoint (CVE-2026-49850)'"
  SecRule REQUEST_URI "@rx ^/invoices/(delete|delete_invoice_tax)/"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.