CVE-2026-58167: Nightingale Credential Disclosure via Unprotected Datasource API
Nightingale (n9e), an open-source observability platform, contains a credential disclosure vulnerability in its datasource management API. Any user with standard (low-privilege) access can retrieve the complete configuration of all connected data sources—including plaintext database passwords, API tokens, and encryption keys—through a single API endpoint. This happens because the endpoint lacks proper permission checks that are present on other similar operations, and the response is not filtered to remove sensitive fields. An attacker with legitimate low-privilege credentials can use disclosed secrets to gain unauthorized access to backend databases, monitoring systems, and other connected infrastructure.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 6.5 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Weaknesses (CWE)
- CWE-862
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-30 / 2026-07-14
NVD description (verbatim)
Nightingale (n9e) before 9.0.0-beta.2 exposes full datasource configurations, including plaintext database passwords, HTTP bearer tokens, HTTP basic-auth passwords, and mTLS client keys, to any authenticated low-privilege (Standard role) user through POST /api/n9e/datasource/list. The route is registered without an admin authorization gate, unlike the sibling datasource mutation routes, and the open-source DatasourceFilter does not redact secret fields, so the secret-bearing settings, http, and auth objects are serialized in the response. The disclosed credentials enable access to the connected downstream systems.
5 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-58167 is an authorization bypass and sensitive information disclosure flaw in Nightingale versions before 9.0.0-beta.2. The POST /api/n9e/datasource/list endpoint does not enforce administrative authorization checks, allowing any authenticated user with the Standard role to request and receive the full serialization of all datasource objects. The vulnerability exists at two layers: the route itself lacks role-based access control (RBAC) guards that sibling mutation endpoints enforce, and the DatasourceFilter in the open-source codebase does not redact the settings, http, and auth object fields that contain plaintext credentials. When these objects are marshaled to JSON and returned, they expose database connection strings with credentials, HTTP Bearer tokens, Basic Authentication passwords, and mTLS client certificates.
Business impact
The disclosure of datasource credentials significantly expands the blast radius of a compromised low-privilege account. Standard users or attackers using stolen standard credentials can pivot to backend infrastructure—databases, Kubernetes clusters, cloud storage, and third-party monitoring services—with the same privileges as the Nightingale platform itself. This violates the principle of least privilege and can enable lateral movement, data exfiltration, or infrastructure manipulation. Organizations relying on role separation between the monitoring platform and managed systems lose that security boundary. The impact is particularly acute in environments where Nightingale monitors production systems or holds credentials for high-value targets.
Affected systems
Nightingale (n9e) versions prior to 9.0.0-beta.2 are vulnerable. The issue is present in the open-source project and any deployments running affected versions. Both self-hosted and containerized installations are exposed if not patched. The vulnerability requires an authenticated account (no unauthenticated access), but does not require administrative privileges, making it exploitable by a broader class of users and by attackers who have obtained or created standard-level credentials.
Exploitability
Exploitation is straightforward: an attacker with valid Standard-role credentials (or a compromised low-privilege account) can make a single POST request to /api/n9e/datasource/list and parse the JSON response to extract all stored credentials. No special tools, race conditions, or environment-specific setup are required. The vulnerability is not listed in the CISA KEV catalog, but the attack surface is wide—any organization using Nightingale with federated identity, SSO, or a high number of low-privilege users increases the likelihood of credential compromise or malicious insider abuse. Once obtained, the disclosed credentials are immediately actionable against downstream systems.
Remediation
Upgrade Nightingale to version 9.0.0-beta.2 or later. This version introduces proper authorization enforcement on the datasource list endpoint and redaction of sensitive fields in API responses. Organizations unable to upgrade immediately should restrict API access via network controls (IP allowlisting, WAF rules), enforce strong authentication and multi-factor authentication to reduce the chance of low-privilege credential compromise, and audit datasource configurations to identify which secrets are at highest risk of abuse.
Patch guidance
Verify the vendor advisory for the exact version number (9.0.0-beta.2 or final release) and deployment method (container image tags, package repositories, or source builds). Apply patches to all Nightingale instances, including development and staging environments, as they may host credentials for production systems. Test the patch in a non-production environment first to confirm API behavior does not regress. After patching, rotate all datasource credentials that were stored in Nightingale prior to the patch application, as they should be treated as compromised.
Detection guidance
In pre-patch environments, monitor for POST requests to /api/n9e/datasource/list from low-privilege or Standard-role accounts. Successful requests followed by credential usage patterns in downstream systems (database login anomalies, API token usage from unexpected sources, mTLS certificate activity) may indicate exploitation. Log all API calls to datasource endpoints and alert on requests from accounts that do not typically access datasource configurations. Correlate Nightingale authentication logs with subsequent access logs on connected backend systems to detect lateral movement.
Why prioritize this
Although CVSS 6.5 (Medium) reflects that exploitation requires authentication, the vulnerability fundamentally breaks credential segmentation in the monitoring stack. The ability for low-privilege users to obtain high-privilege secrets in connected systems elevates real-world risk beyond the numeric score. Organizations with many standard users, high-value backend systems, or compliance requirements for role separation should prioritize this as a high-business-impact issue. The fix is available and straightforward; delay increases exposure window.
Risk score, explained
CVSS 3.1 score of 6.5 reflects: network-accessible API (AV:N), low complexity (AC:L), required authentication but low privilege (PR:L), no user interaction (UI:N), single security domain (S:U), high confidentiality impact (C:H), and no integrity or availability impact (I:N/A:N). The score does not account for secondary impact on downstream systems or the organizational cost of credential rotation, which the business context should weigh during prioritization.
Frequently asked questions
Can this vulnerability be exploited without an authenticated account?
No. The endpoint is protected by authentication. An attacker must have valid credentials for the Nightingale instance and a Standard (low-privilege) role or higher. Credential compromise, insider threats, or overly permissive account provisioning are the typical attack paths.
Which credentials are at risk?
All credentials stored in Nightingale datasource configurations: database passwords, HTTP Bearer tokens, Basic Authentication credentials, mTLS client keys and certificates, and any other secrets embedded in the settings, http, or auth fields. The exact scope depends on which data sources are configured in your instance.
Is there a workaround if we cannot patch immediately?
Partial mitigation: restrict network access to the Nightingale API using firewall rules, VPN, or WAF to limit which users can reach the endpoint. Enforce strong authentication and MFA to reduce the likelihood of low-privilege credential theft. Monitor for suspicious API calls. However, these are temporary measures; upgrading is the only complete fix.
Do we need to rotate credentials even if we patch?
Yes. Assume any credential stored in Nightingale prior to patching could have been accessed. Rotate database passwords, API tokens, and certificates used by datasources to eliminate the risk that an attacker captured the plaintext values before the patch was applied.
This analysis is based on the published CVE record and vendor advisory as of the modification date. Verify patch version numbers and availability directly with the Nightingale project or your vendor before deploying. The CVSS score and severity assessment are guidelines; your organization should evaluate risk based on your deployment architecture, the number of low-privilege users, and the sensitivity of connected backend systems. SEC.co provides this information for informational purposes; organizations are responsible for their own vulnerability management and security decisions. Source: NVD (public-domain), retrieved 2026-08-09. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2022-42479MEDIUMMissing Authorization in TemplateHouse Soledad – MEDIUM Severity Access Control Bypass
- CVE-2022-45813MEDIUMBeRocket Advanced AJAX Product Filters Missing Authorization Flaw
- CVE-2023-25969MEDIUMMissing Authorization in ThemeHunk Contact Form Plugin
- CVE-2023-32959MEDIUMMetroStore Missing Authorization Vulnerability – Patch Guide
- CVE-2024-24709MEDIUMShareaholic Missing Authorization Vulnerability – Update Required
- CVE-2024-31435MEDIUMMissing Authorization in Inisev Social Media & Share Icons Plugin—Patch Guidance
- CVE-2024-33685MEDIUMMissing Authorization in Jegstudio Startupzy 1.1.1 – MEDIUM Severity Vulnerability
- CVE-2024-33909MEDIUMMissing Authorization in Avirtum iPages Flipbook – CVSS 5.3 Patch Guide