{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "2.6.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "0f268cbe6c1253fc13f4f2fc0613f032e8a502a5"
            }
          ],
          "repo": "https://github.com/consuldemocracy/consuldemocracy",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-639"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142267.json"
  },
  "details": "Consul Democracy through 2.6.1 contains a missing authorization vulnerability in DirectUploadsController#create that allows authenticated users to delete images attached to other users' records by supplying arbitrary resource_type and resource_id parameters. Attackers can send direct upload requests naming proposals, budget investments, polls, or homepage cards by sequential id, causing build_image to destroy the existing associated image.",
  "id": "CVE-2026-142267",
  "modified": "2026-12-02T21:45:29.218553980Z",
  "published": "2026-12-02T16:49:31.123Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142267.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/consuldemocracy/consuldemocracy"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/consuldemocracy/consuldemocracy/blob/2.6.1/app/controllers/direct_uploads_controller.rb#L1-L16"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/consuldemocracy/consuldemocracy/blob/2.6.1/app/models/direct_upload.rb#L14-L37"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142267"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/consul-democracy-through-2.6.1-missing-authorization-via-directuploadscontroller-image-deletion"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Consul Democracy through 2.6.1 Missing Authorization via DirectUploadsController Image Deletion"
}