CVE-2026-135684 in SparkyFitness
Summary
by MITRE • 11/24/2026
SparkyFitness before 1.12.0 contains a missing ownership check in getNutritionixHeaders that allows authenticated users to use another user's Nutritionix API credentials via the providerId parameter. Attackers who know a victim's provider UUID can call the Nutritionix search, nutrients, item, or exercise endpoints to consume the victim's paid API quota.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/24/2026
The vulnerability identified in SparkyFitness versions prior to 1.12.0 represents a critical failure in access control mechanisms within the application backend logic. Specifically, the flaw resides in the getNutritionixHeaders function, which is responsible for constructing authentication headers for external API requests. The core technical deficiency is a missing ownership check when processing the providerId parameter supplied by authenticated users. In a secure implementation, any request utilizing third-party service credentials must verify that the requesting user entity owns or has explicit permission to use those specific credentials. However, in this vulnerable version, the application accepts the providerId from the client-side input without validating whether it corresponds to an account owned by the currently authenticated session. This oversight allows a malicious actor who is already logged into the system to manipulate API calls directed at Nutritionix services.
From a technical perspective, this flaw enables Insecure Direct Object Reference (IDOR) behavior where the provider identifier serves as the direct object reference. By supplying a victim's specific provider UUID within the request payload, an attacker can force the application to authenticate subsequent requests using that victim's API keys rather than the attacker's own or no credentials at all. This bypasses standard authorization checks because the system trusts the association between the authenticated session and the provided identifier without performing a secondary verification step against the user database. The vulnerability is particularly dangerous because it leverages existing authentication, meaning the threat actor does not need to compromise account passwords but only needs knowledge of another user's internal provider UUID, which may be discoverable through enumeration or other information leakage vectors within the application interface.
The operational impact of this vulnerability centers on resource abuse and potential financial liability for victims. Since Nutritionix is a paid service, consuming its API quota effectively drains the victim's allocated usage limits. Attackers can exploit endpoints such as search, nutrients, item details, and exercise data to perform bulk queries or automated scraping operations. This not only degrades the quality of service for legitimate users who may hit their rate limits prematurely but also exposes them to unexpected overage charges from the third-party provider if they have pay-as-you-go pricing models enabled. Furthermore, while the primary impact is resource exhaustion, there are secondary privacy implications as attackers can potentially access detailed dietary and exercise data associated with the victim's account through these API calls, depending on how much personal information is exposed via those specific endpoints.
This vulnerability aligns closely with CWE-284, which describes Improper Access Control, specifically highlighting failures in verifying ownership of resources during operations. It also maps to MITRE ATT&CK technique T1078, Valid Accounts, as the attacker utilizes legitimate credentials to perform unauthorized actions against other users' data and services. To mitigate this issue, developers must implement strict object-level authorization checks within the getNutritionixHeaders function or any related service layer code. This involves querying the database to confirm that the providerId being used belongs exclusively to the user ID associated with the current authentication token before proceeding with API header generation. Additionally, implementing rate limiting per account and monitoring for unusual spikes in external API usage can help detect exploitation attempts early. Upgrading to version 1.12.0 or later is essential as it addresses this logic flaw by enforcing proper ownership validation on all provider-related operations.