# CVE-2026-142306: GoatCounter through 2.7.0 CSV Formula Injection via Pageview Export

Source: https://aplosec.si/cve/CVE-2026-142306/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142306

Low 2.3 · Reported · No fix listed · CWE-1236 · Go

# GoatCounter through 2.7.0 CSV Formula Injection via Pageview Export

CVE-2026-142306 · published 2026-12-02

In plain words: this type of bug lets someone inject their own content into data the application builds (injection). No fixed release is listed yet.

## Summary

CVE-2026-142306 affects GoatCounter (Go) <= 2.7.0: CSV Formula Injection via Pageview Export (CWE-1236). No fixed release is listed. CVSS 4.0 base score 2.3 (Low), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/goatcounter-through-2.7.0-csv-formula-injection-via-pageview-export](https://www.vulncheck.com/advisories/goatcounter-through-2.7.0-csv-formula-injection-via-pageview-export)

- [Vulnerable codehttps://github.com/arp242/goatcounter/blob/v2.7.0/exportcsv.go#L61-L91](https://github.com/arp242/goatcounter/blob/v2.7.0/exportcsv.go#L61-L91)

- [Vulnerable codehttps://github.com/arp242/goatcounter/blob/v2.7.0/hit.go#L73-L77](https://github.com/arp242/goatcounter/blob/v2.7.0/hit.go#L73-L77)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142306](https://www.cve.org/CVERecord?id=CVE-2026-142306)

**Severity:** Low 2.3 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142306)

**Package:** GoatCounter

**Ecosystem:** Go

**Affected:** <= 2.7.0

**Fixed:** None

**Weakness:** CWE-1236

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
