NocoBase is a low-code platform designed to allow users to build custom applications rapidly. Typically used by developers, businesses, and organizations, it provides flexibility in developing solutions tailored to specific needs. NocoBase enables the creation of various plugins and features to enhance functionality, often deployed via Docker for seamless integration into existing systems. Its primary user base includes IT departments aiming to streamline processes and innovate quickly without extensive coding. However, as with many customizable platforms, maintaining security through proper configuration is critical to safeguarding sensitive information. NocoBase's reliance on user-set security keys makes it vital for administrators to ensure there are no default or weak credentials in place.
The vulnerability identified in NocoBase pertains to the use of a default JWT secret key that allows unauthorized access. This security flaw exploits the default setting where the application key is set as 'your-secret-key,' which can be easily guessed or forged by attackers. This vulnerability can be weaponized to generate tokens that provide full administrative access. As JWT tokens are often used for authenticating users and sessions, improper handling or weak tokens result in significant security risks. This issue particularly affects versions 1.9.21 and earlier, as well as 2.0.0-alpha.51 and earlier of NocoBase. An exploited vulnerability can compromise system integrity and lead to unauthorized control.
The vulnerability leverages a critical endpoint within the NocoBase framework accessible via HTTP requests. Specifically, the flaw exists in the '/api/auth:check' endpoint where JWT tokens are signed and verified using a default 'APP_KEY' value. When the application uses 'your-secret-key' as the APP_KEY, malicious actors can generate forged JWT tokens granting themselves root user access to the application. The HTTP requests have shown that when a forged token is used, the system does not discern between legitimate and illegitimate tokens. This oversight could allow attackers to assume any roles within the NocoBase environment, leveraging the default configuration against an organization's security protocols.
When exploited, this vulnerability can lead to a multitude of adverse effects, compromising data and operations. Attackers gaining administrative access might alter, delete, or exfiltrate sensitive data from the system, posing a threat to data privacy. It could also lead to unauthorized installation of plugins or perform actions disrupting the application's normal functioning. Moreover, control over stored secrets and configurations poses a risk of propagating further vulnerabilities, resulting in a chain reaction of unauthorized access events. Overall, this security flaw undermines organizational trust and can lead to significant operational disruptions.
REFERENCES
- https://github.com/nocobase/nocobase/security/advisories/GHSA-mv7p-34fv-4874
- https://github.com/nocobase/nocobase/commit/de4292ea7847dd26c6306445091769f8b9ee96d5
- https://gist.github.com/H2u8s/f3ede60d7ecfe598ae452aa5a8fbb90d
- https://nvd.nist.gov/vuln/detail/CVE-2025-13877
- Upgrade to NocoBase 1.9.23, 1.9.0-beta.18, 2.0.0-alpha.52 or later, which ignore the default key and generate a random JWT secret.
- Set the APP_KEY to a strong, unique value and restart the application to ensure new JWT tokens are securely generated.
- Regularly audit and rotate authentication keys and tokens to minimize risks from potential exposures.
- Implement logging and monitoring to detect unauthorized access attempts promptly.
- Educate administrators on the importance of secure configuration practices and routine security checks.
Get AI-powered remediation steps tailored to your asset.
Try AI Solutions →