CVE-2026-27614
MEDIUM 6.1CVSS 3.1Bugsink is vulnerable to Stored XSS via Pygments fallback in stacktrace rendering
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.
- Published
- 25 Feb 2026
- Last modified
- 27 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-vp6q-7m36-pq3wPYSEC-2026-301
- Sources
- NVDJSONOSV GHSA-vp6q-7m36-pq3wJSONOSV PYSEC-2026-301JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | bugsink | bugsinkcpe:2.3:a:bugsink:bugsink:*:*:*:*:*:*:*:* |
< 2.0.13 | 2.0.13 |
| OSV | PyPI | bugsink | < 2.0.13 | 2.0.13 |
References
- https://github.com/bugsink/bugsink/commit/e784d6aeb0d5f29b40c2779d2544c2b9ef097ee9 · Patch, WEB
- https://github.com/bugsink/bugsink/releases/tag/2.0.13 · Product, Release Notes, WEB
- https://github.com/bugsink/bugsink/security/advisories/GHSA-vp6q-7m36-pq3w · Exploit, Vendor Advisory, 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 · WEB, PACKAGE
- https://github.com/advisories/GHSA-vp6q-7m36-pq3w · ADVISORY
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 25 Feb 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 25 Feb 2026)