# CVE-2026-113612: SparkyFitness missing authorization in food variant deletion

Source: https://junglewise.ai/threats/cve-2026-113612-sparkyfitness-before-0-17-0-contains-a-missing-authorization  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-20. Updated: 2026-10-20  
License: CC BY 4.0 with a link back

CVE-2026-113612 · Severity: medium · CVSS 5.4 · Published 2026-10-20

SparkyFitness is a fitness tracking application that allows users to manage food data and nutrition information. Before version 0.17.0, any authenticated user can delete food variants (serving sizes and nutrition data) belonging to other users by exploiting insufficient authorization checks. An attacker can permanently destroy victims' food library data by targeting publicly shared foods.

Technologies: [CodeWithCJ SparkyFitness](https://junglewise.ai/threats/technologies/sparkyfitness). Vendors: [CodeWithCJ](https://junglewise.ai/threats/vendors/codewithcj).

## Quick answers

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

**How severe is CVE-2026-113612?** Medium severity, with a CVSS score of 5.4, published 20 October 2026.

**Which products and versions are affected?** CodeWithCJ SparkyFitness before 0.17.0.

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

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

**Am I affected by CVE-2026-113612?** Check whether you run CodeWithCJ SparkyFitness 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 0.17.0

## Technical details

The DELETE /api/foods/food-variants/:id endpoint in SparkyFitness before 0.17.0 lacks proper authorization verification, allowing authenticated users to delete food variants they do not own. Attackers can enumerate variant IDs from public food read endpoints and delete serving and nutrition variants of any publicly shared food. The vulnerability is fixed in version 0.17.0 by implementing row-level security policies and enforcing ownership checks on variant deletion.

## Affected products

- CodeWithCJ SparkyFitness before 0.17.0

## Timeline

- 2026-10-20: disclosed
- 2026-06-16: patched

## References

- [https://github.com/CodeWithCJ/SparkyFitness/blob/v0.16.9/SparkyFitnessServer/services/foodCoreService.ts](https://github.com/CodeWithCJ/SparkyFitness/blob/v0.16.9/SparkyFitnessServer/services/foodCoreService.ts)
- [https://github.com/CodeWithCJ/SparkyFitness/commit/79215eb4d6dda12262e1bb15b76dceb0e37f6fa1](https://github.com/CodeWithCJ/SparkyFitness/commit/79215eb4d6dda12262e1bb15b76dceb0e37f6fa1)

## Related threats

- [SparkyFitness command injection in backup restore endpoint](https://junglewise.ai/threats/cve-2026-92263-sparkyfitness-is-a-self-hosted-ai-powered-health-and-fitness)
- [SparkyFitness server-side request forgery in AI service settings](https://junglewise.ai/threats/cve-2026-102923-sparkyfitness-is-a-self-hosted-ai-powered-health-and-fitness)
