Bugsink is vulnerable to Stored XSS via Pygments fallback in stacktrace rendering
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| bugsink | bugsink | before 2.0.13 | 2.0.13 | Patch available | CNA |
| — | bugsink (PyPI) | before 2.0.13 | 2.0.13 | Patch available | GHSA-vp6q-7m36-pq3w |
- bugsink Vendorbugsink Affected before 2.0.13 Fixed in 2.0.13 Patch available CNA
- bugsink (PyPI) Vendor— Affected before 2.0.13 Fixed in 2.0.13 Patch available GHSA-vp6q-7m36-pq3w
Remediation
- Fix · CNA bugsink (bugsink) Fixed in 2.0.13
- Fix · GHSA-vp6q-7m36-pq3w bugsink (PyPI) Fixed in 2.0.13 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-27614
- 2026-10-03 Alias added: GHSA-vp6q-7m36-pq3w
References
More Bugsink vulnerabilities
- TI-2026-28977 Bugsink affected by authenticated arbitrary file write in artifactbundle/assemble CVSS 3.1HIGH 7.1
Sources
- CVE-2026-27614 · CVE Program
- CVE-2026-27614 · NVD
- FIRST EPSS
- GHSA-vp6q-7m36-pq3w · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences