CVE-2024-41656: Sentry vulnerable to stored Cross-Site Scripting (XSS)
Impact An unsanitized payload sent by an Integration platform integration allows the storage of arbitrary HTML tags on the Sentry side. This payload could subsequently be rendered on the Issues page, creating a Stored Cross-Site Scripting (XSS) vulnerability. This vulnerability might lead to the execution of arbitrary scripts in the context of a user’s browser.
Published Jul 23, 2024 · Updated Jul 24, 2024
Affected packages
sentry
- Ecosystem
- PyPI
- Affected
- >= 10.0.0, < 24.7.1
- Fixed in
- 24.7.1
- Check
pip show sentry
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
An unsanitized payload sent by an Integration platform integration allows the storage of arbitrary HTML tags on the Sentry side. This payload could subsequently be rendered on the Issues page, creating a Stored Cross-Site Scripting (XSS) vulnerability. This vulnerability might lead to the execution of arbitrary scripts in the context of a user’s browser.
Self-hosted Sentry users may be impacted if untrustworthy Integration platform integrations send external issues to their Sentry instance.
Patches
The patch has been released in Sentry 24.7.1
Workarounds
For Sentry SaaS customers, no action is needed. This has been patched on July 22, and even prior to the fix, the exploitation was not possible due to the strict Content Security Policy deployed on sentry.io site.
For self-hosted users, we strongly recommend upgrading Sentry to the latest version. If it is not possible, you could enable CSP on your self-hosted installation with CSP_REPORT_ONLY = False (enforcing mode). This will mitigate the risk of XSS.
References
- Sentry Docs: Integration platform / Create an External Issue
- Sentry Docs: Self-hosted CSP
- The fix: https://github.com/getsentry/sentry/pull/74648
- PortSwigger: Stored XSS
Credited to stsewd.
References
- https://github.com/getsentry/sentry/security/advisories/GHSA-fm88-hc3v-3www
- https://github.com/getsentry/sentry/pull/74648
- https://github.com/getsentry/self-hosted/releases/tag/24.7.1
- https://nvd.nist.gov/vuln/detail/CVE-2024-41656
- https://github.com/getsentry/sentry/commit/5c679521f1539eabfb81287bfc30f34dbecd373e
- https://github.com/advisories/GHSA-fm88-hc3v-3www
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2021-47935
Sentry: Superusers can execute arbitrary commands by injecting malicious pickle-serialized objects through audit log entry data parameter
high8.8May 10, 2026CVE-2026-42354
Sentry's improper authentication on SAML SSO process allows user identity linking
critical9.1Apr 30, 2026CVE-2026-27197
Sentry: Improper authentication on SAML SSO process allows user identity linking
critical9.1No fixApr 17, 2026CVE-2025-22146
Sentry's improper authentication on SAML SSO process allows user impersonation
critical9.1Jan 15, 2025CVE-2024-53253
Sentry improper error handling leaks Application Integration Client Secret
medium5.3Nov 22, 2024CVE-2024-45605
Sentry improperly authorizes deletion of user issue alert notifications
high6.5Sep 17, 2024
