# CVE-2026-27614: Bugsink is vulnerable to Stored XSS via Pygments fallback in stacktrace rendering

- Severity: Critical 9.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-25T02:31:17.880Z
- Modified: 2026-10-27T15:30:04.325Z
- Also known as: GHSA-vp6q-7m36-pq3w, PYSEC-2026-301
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Bugsink is a self-hosted error tracking tool. In versions prior to 2.0.13, an unauthenticated attacker who can submit events to a Bugsink project can store arbitrary JavaScript in an event. The payload executes only if a user explicitly views the affected Stacktrace in the web UI. When Pygments returns more lines than it was given (a known upstream quirk that triggers with Ruby heredoc-style input), `_pygmentize_lines()` in `theme/templatetags/issues.py:75-77` falls back to returning the raw input lines. `mark_safe()` at line 111-113 is then applied unconditionally - including to those unsanitized raw lines. Since DSN endpoints are public by Sentry protocol, no account is needed to inject. The payload sits in the database until an admin looks at the event. Successful exploitation requires that the attacker to be able to submit events to the project (i.e. knows the DSN or can access a client that uses it), the Bugsink ingest endpoint is reachable to the attacker, and an administrator explicitly views the crafted event in the UI. Under those conditions, the attacker can execute JavaScript in the administrator’s browser and act with that user’s privileges within Bugsink. Version 2.0.13 fixes the vulnerability.

(As written by CVE List.)

## Affected

- bugsink bugsink: < 2.0.13; before 2.0.13
- bugsink (PyPI): before 2.0.13

## Every score

- GitHub_M: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`

## References

- <https://github.com/bugsink/bugsink/security/advisories/GHSA-vp6q-7m36-pq3w> (exploit, vendor-advisory, web)
- <https://github.com/bugsink/bugsink/commit/e784d6aeb0d5f29b40c2779d2544c2b9ef097ee9> (patch, web)
- <https://github.com/bugsink/bugsink/releases/tag/2.0.13> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27614> (advisory)
- <https://github.com/bugsink/bugsink> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/bugsink/PYSEC-2026-301.yaml> (web)
- <https://pypi.org/project/bugsink> (package, web)
- <https://github.com/advisories/GHSA-vp6q-7m36-pq3w> (advisory)

## Sources

- CVE List: [CVE-2026-27614](https://www.cve.org/CVERecord?id=CVE-2026-27614), CVE Terms of Use, modified 2026-02-25
- GitHub Advisory Database: [GHSA-vp6q-7m36-pq3w](https://github.com/advisories/GHSA-vp6q-7m36-pq3w), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2026-27614](https://nvd.nist.gov/vuln/detail/CVE-2026-27614), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-301](https://osv.dev/vulnerability/PYSEC-2026-301), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-27614 · Whole record: https://cve.day/CVE-2026-27614.json · Rebuilt by cve.day 2026-11-25T22:59:14.808Z
