CVE-2026-135486: Munshi Broken Object Level Authorization via invoice/extracted-data Endpoint
Munshi (by Petpooja) before 2026-07-07 contained a broken object level authorization vulnerability in the PUT /api/invoice/{invoiceid}/extracted-data endpoint, which accepts a client-supplied extracteddata object without verifying invoice ownership, enforcing the invoiceedit permission or checking whether the invoice has been soft deleted. Authenticated attackers who know an invoice identifier can overwrite seller and buyer details, invoice identifiers, product entries, totals and custom metadata of invoices, including archived invoices marked isdeleted = 1, undermining the integrity of financial records.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
Any authenticated user who knows or can obtain an invoice identifier may be able to exploit it. The vulnerable endpoint does not verify that the requester owns the targeted invoice or has the invoice_edit permission.
Are archived or soft-deleted invoices affected?
Yes. The endpoint does not check whether an invoice has been soft deleted, so invoices marked is_deleted = 1 can still be modified.
What can an attacker change?
An attacker can supply an extracted_data object that overwrites seller and buyer details, invoice identifiers, product entries, totals, and custom metadata. The impact is integrity-focused: financial records can be altered.
What should be restricted if a fix cannot be applied immediately?
Restrict access to the PUT /api/invoice/{invoice_id}/extracted-data endpoint to users and services that require invoice editing, and ensure authorization is enforced before requests reach the endpoint. Review changes to invoice extracted data, including changes to soft-deleted invoices, for unauthorized modifications.
How can defenders identify possible exploitation?
Review PUT requests to /api/invoice/{invoice_id}/extracted-data for cases where the authenticated requester did not own the invoice or lacked invoice_edit permission. Also investigate modifications to invoices marked is_deleted = 1 and unexpected changes to invoice parties, line items, totals, identifiers, or metadata.