# CVE-2026-122158: InvoiceShelf improper access control in member company assignment

Source: https://junglewise.ai/threats/cve-2026-122158-a-security-flaw-has-been-discovered-in-invoiceshelf-up-to-2-4-3  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-11-05. Updated: 2026-11-05  
License: CC BY 4.0 with a link back

CVE-2026-122158 · Severity: medium · CVSS 4.7 · Published 2026-11-05

InvoiceShelf is an open-source invoicing solution used by individuals and businesses to manage financial documents. A flaw in the member creation function allows an attacker to manipulate company assignments and roles, potentially gaining unauthorized access to companies they do not own. This could lead to unauthorized financial data exposure or modification.

Technologies: [Invoiceshelf](https://junglewise.ai/threats/technologies/invoiceshelf). Vendors: [Invoiceshelf](https://junglewise.ai/threats/vendors/invoiceshelf).

## Quick answers

**Is CVE-2026-122158 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-122158 being exploited in the wild.

**How severe is CVE-2026-122158?** Medium severity, with a CVSS score of 4.7, published 5 November 2026.

**Which products and versions are affected?** Invoiceshelf up to 2.4.3 and 3.0.0-alpha.3.

**Is there a fix for CVE-2026-122158?** Yes: fixed in 2.4.4, 3.0.0-alpha.4. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-122158 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-122158?** Check whether you run Invoiceshelf at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in 2.4.4, 3.0.0-alpha.4

## Technical details

The MemberService::create function in app/Domains/Accounts/Application/MemberService.php improperly validates the companies[].id and companies[].role parameters, allowing an authenticated attacker to assign members to arbitrary companies or modify roles without proper authorization checks. The vulnerability requires remote network access and can be exploited by a user with member creation privileges to escalate access across company boundaries.

## Affected products

- InvoiceShelf InvoiceShelf up to 2.4.3 and 3.0.0-alpha.3

## Timeline

- 2026-11-05: disclosed
- 2026-09-23: patched: Commit c798b513c3ab6e672a1678774720fbb282f4d0c6 merged

## References

- [https://github.com/InvoiceShelf/InvoiceShelf/](https://github.com/InvoiceShelf/InvoiceShelf/)
- [https://github.com/InvoiceShelf/InvoiceShelf/commit/c798b513c3ab6e672a1678774720fbb282f4d0c6](https://github.com/InvoiceShelf/InvoiceShelf/commit/c798b513c3ab6e672a1678774720fbb282f4d0c6)

## Related threats

- [InvoiceShelf server-side request forgery in PDF generation](https://junglewise.ai/threats/cve-2026-55385-invoiceshelf-is-an-open-source-web-mobile-app-that-helps-track)
- [InvoiceShelf cross-tenant user account takeover via authorization bypass](https://junglewise.ai/threats/cve-2026-55610-invoiceshelf-is-an-open-source-web-mobile-app-that-helps-track)
- [InvoiceShelf SSRF in Invoice PDF generation module](https://junglewise.ai/threats/cve-2026-34367-invoiceshelf-ssrf-in-invoice-pdf-generation-module)
- [InvoiceShelf SSRF in payment receipt PDF generation](https://junglewise.ai/threats/cve-2026-34366-invoiceshelf-ssrf-in-payment-receipt-pdf-generation)
- [InvoiceShelf SSRF in Estimate PDF generation module](https://junglewise.ai/threats/cve-2026-34365-invoiceshelf-ssrf-in-estimate-pdf-generation-module)
