{"id":"CVE-2026-113612","summary":"SparkyFitness before 0.17.0 Missing Authorization via food-variants DELETE Endpoint","details":"SparkyFitness before 0.17.0 contains a missing authorization vulnerability that allows authenticated users to delete other users' food variants via the DELETE /api/foods/food-variants/:id endpoint. Attackers can use variant IDs from public food read endpoints to delete serving and nutrition variants of publicly shared foods, destroying victims' data.","aliases":["GHSA-qph8-6xrr-7xjw"],"modified":"2026-10-21T02:55:53.726046241Z","published":"2026-10-20T15:40:36.888Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113612.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-862"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113612.json"},{"type":"PACKAGE","url":"https://github.com/CodeWithCJ/SparkyFitness"},{"type":"ARTICLE","url":"https://github.com/CodeWithCJ/SparkyFitness/blob/v0.16.9/SparkyFitnessServer/services/foodCoreService.ts#L479-L498"},{"type":"FIX","url":"https://github.com/CodeWithCJ/SparkyFitness/commit/79215eb4d6dda12262e1bb15b76dceb0e37f6fa1"},{"type":"ADVISORY","url":"https://github.com/CodeWithCJ/SparkyFitness/releases/tag/v0.17.0"},{"type":"ADVISORY","url":"https://github.com/CodeWithCJ/SparkyFitness/security/advisories/GHSA-qph8-6xrr-7xjw"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-113612"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/sparkyfitness-before-0.17.0-missing-authorization-via-food-variants-delete-endpoint"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/codewithcj/sparkyfitness","events":[{"introduced":"0"},{"fixed":"408d15f2a187f88d1e3d32f49ad08d42cf293bdb"},{"fixed":"79215eb4d6dda12262e1bb15b76dceb0e37f6fa1"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"0.17.0"}]},{"range":[{"fixed":"79215eb4d6dda12262e1bb15b76dceb0e37f6fa1"}],"source":"REFERENCES_COMMIT"},{"original_tag":"v0.17.0","range":[{"fixed":"408d15f2a187f88d1e3d32f49ad08d42cf293bdb"}],"source":"REFERENCES_TAG"}]}}],"versions":["v0.16.9","v0.16.8","v0.16.7","v0.16.6.3","v0.16.6.2","v0.16.6.1","v0.16.6.0","v0.16.5.9","v0.16.5.8","v0.16.5.7","v0.16.5.6","v0.16.5.5","v0.16.5.4","v0.16.5.3","v0.16.5.2","v0.16.5.1","v0.16.5.0","v0.16.4.9","v0.16.4.8","v0.16.4.6","v0.16.4.5","v0.16.4.4","v0.16.4.3","v0.16.4.2","v0.16.4.1","v0.16.4.0","v0.16.3.6","v0.16.3.5","v0.16.3.4","v0.16.3.3","v0.16.3.2","v0.16.3.1","v0.16.3","v0.16.2","v0.16.1","v0.16.0","v0.15.9.9","v0.15.9.8","v0.15.9.7","v0.15.9.6","v0.15.9.5","v0.15.9.4","v0.15.9.3","v0.15.9.2","v0.15.9.1","v0.15.9","v0.15.8.5","v0.15.8.4","v0.15.8.3","v0.15.8.2","v0.15.8.1","v0.15.7.3","v0.15.7.2","v0.15.7.1","v0.15.7","v0.15.6","v0.15.5.4","v0.15.5.3","v0.15.5.2","v0.15.5.1","v0.15.5","v0.15.4.1","v0.15.4","v0.15.3.1","v0.15.3","v0.15.2.1","v0.15.2","v0.15.1","v0.15.0","v0.14.9","v0.14.8","v0.14.7","v0.14.6","v0.14.5","v0.14.4","v0.14.3","v0.14.2","v0.14.1","v0.14","v0.13","v0.12.1","v0.12","v0.11","v0.10.1","v0.10","v0.09","v0.07.1","v0.07","v0.06","v0.05","v0.04","v0.03","v0.02","v0.01"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-113612.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N"}]}