{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "0.17.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "79215eb4d6dda12262e1bb15b76dceb0e37f6fa1"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v0.17.0",
                "range": [
                  {
                    "fixed": "408d15f2a187f88d1e3d32f49ad08d42cf293bdb"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "408d15f2a187f88d1e3d32f49ad08d42cf293bdb"
            },
            {
              "fixed": "79215eb4d6dda12262e1bb15b76dceb0e37f6fa1"
            }
          ],
          "repo": "https://github.com/codewithcj/sparkyfitness",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-qph8-6xrr-7xjw"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-862"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113612.json"
  },
  "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.",
  "id": "CVE-2026-113612",
  "modified": "2026-10-21T02:30:22.053375548Z",
  "published": "2026-10-20T15:40:36.888Z",
  "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"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "SparkyFitness before 0.17.0 Missing Authorization via food-variants DELETE Endpoint"
}