{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "2.7.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "7e91d8a9bdbb0dd48496e498c5680f8f3477a1b4"
            }
          ],
          "repo": "https://github.com/arp242/goatcounter",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-1236"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142306.json"
  },
  "details": "GoatCounter through 2.7.0 contains a CSV formula injection vulnerability in exportcsv.go that allows remote unauthenticated attackers to store spreadsheet formulas by sending crafted count endpoint requests. Attackers can inject values beginning with =, +, - or @ into page titles, referrers or event paths, which execute when the site owner opens the exported CSV to exfiltrate spreadsheet data.",
  "id": "CVE-2026-142306",
  "modified": "2026-12-02T20:45:54.213934107Z",
  "published": "2026-12-02T16:48:47.674Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142306.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/arp242/goatcounter"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/arp242/goatcounter/blob/v2.7.0/exportcsv.go#L61-L91"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/arp242/goatcounter/blob/v2.7.0/hit.go#L73-L77"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142306"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/goatcounter-through-2.7.0-csv-formula-injection-via-pageview-export"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "GoatCounter through 2.7.0 CSV Formula Injection via Pageview Export"
}