# NocoBase arbitrary file write and local file inclusion leading to remote code execution

Source: https://junglewise.ai/threats/nocobase-arbitrary-file-write-and-local-file-inclusion-leading-to-b8ec6b22  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-20. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

Severity: info · CVSS 8.8 · Published 2026-08-20

NocoBase is an open-source data management and workflow platform. Two chained vulnerabilities allow an authenticated administrator to write malicious files to arbitrary locations on disk and then execute them as code, resulting in complete server compromise. This requires valid admin credentials but leads to full remote code execution with the privileges of the NocoBase process.

Technologies: [Nocobase](https://junglewise.ai/threats/technologies/nocobase). Vendors: [NocoBase](https://junglewise.ai/threats/vendors/nocobase), [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Informational severity, with a CVSS score of 8.8, published 20 August 2026.

**Which products and versions are affected?** Nocobase <2.1.5; @nocobase/server (npm) SEMVER:introduced=0,fixed=2.1.5.

**Is there a fix for This vulnerability?** Yes. @nocobase/server (npm): upgrade to 2.1.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is This vulnerability attacked?** It is attacked over the network.

**Am I affected?** Check whether you run Nocobase or @nocobase/server (npm) 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

- @nocobase/server (npm): upgrade to 2.1.5 or later

  ```sh
  npm install @nocobase/server@2.1.5
  ```


## Technical details

The vulnerability chain consists of two flaws: (1) The storages:update API endpoint fails to validate the documentRoot parameter, allowing an authenticated admin to redirect the file upload storage root to any absolute filesystem path, including the application directory. An upload to this redirected root then writes a malicious payload anywhere the Node.js process can write. (2) The pm:enable plugin manager endpoint passes user-supplied paths directly to Node.js require() without validation, enabling local file inclusion. By uploading a malicious JavaScript file via the redirected storage and then triggering require() on its path, an attacker executes arbitrary code. Both vulnerabilities require admin authentication, and a working proof-of-concept exploit chain has been demonstrated. Patches are available in version 2.1.5 and later.

## Affected products

- NocoBase NocoBase <2.1.5

## Timeline

- 2026-06-15: disclosed
- 2026-06-15: patched: Fixed in version 2.1.5

## References

- [https://github.com/nocobase/nocobase/security/advisories/GHSA-ghvf-qf6h-g8x5](https://github.com/nocobase/nocobase/security/advisories/GHSA-ghvf-qf6h-g8x5)
- [https://github.com/nocobase/nocobase/pull/9628](https://github.com/nocobase/nocobase/pull/9628)

## Related threats

- [NocoBase server-side request forgery in customRequests:send](https://junglewise.ai/threats/cve-2026-79914-nocobase-is-an-ai-powered-no-code-low-code-platform-for-building)
- [NocoBase SQL injection in checkSQL function](https://junglewise.ai/threats/cve-2026-88402-a-sql-injection-vulnerability-in-the-checksql-function-of)
- [NocoBase cross-site scripting in rich text field renderer](https://junglewise.ai/threats/cve-2026-84701-nocobase-cross-site-scripting-in-rich-text-field-renderer)
- [NocoBase sensitive data exposure via SQL blacklist bypass in SQL Collection](https://junglewise.ai/threats/cve-2026-52888-nocobase-sensitive-data-exposure-via-sql-blacklist-bypass-in-sql)
- [NocoBase SQL injection in in-app notification channel filter](https://junglewise.ai/threats/cve-2026-52887-nocobase-sql-injection-in-in-app-notification-channel-filter)
