# GHSA-593M-55HH-J8GV: Sentry SDK Prototype Pollution gadget in JavaScript SDKs

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2024-10-03
- Modified: 2024-10-04

## Affected versions

- @sentry/browser (npm): from 8.0.0-alpha.1, fixed in 8.33.0
- @sentry/browser (npm): fixed in 7.119.1

## Description

### Impact
In case a Prototype Pollution vulnerability is present in a user's application or bundled libraries, the Sentry SDK could potentially serve as a gadget to exploit that vulnerability. The exploitability depends on the specific details of the underlying Prototype Pollution issue.

> [!NOTE]
> This advisory does not indicate the presence of a Prototype Pollution within the Sentry SDK itself. Users are strongly advised to first address any Prototype Pollution vulnerabilities in their application, as they pose a more critical security risk.

### Patches
The issue was patched in all Sentry JavaScript SDKs starting from the [8.33.0](https://github.com/getsentry/sentry-javascript/releases/tag/8.33.0) version.
Also, the fix was backported to SDK v7 in [7.119.1](https://github.com/getsentry/sentry-javascript/releases/tag/7.119.1).

### References
* [Prototype Pollution](https://portswigger.net/web-security/prototype-pollution)
* [Prototype Pollution gadgets](https://portswigger.net/web-security/prototype-pollution#prototype-pollution-gadgets)
* [sentry-javascript#13838](https://github.com/getsentry/sentry-javascript/pull/13838)

## References

- https://github.com/getsentry/sentry-javascript/security/advisories/GHSA-593m-55hh-j8gv
- https://github.com/getsentry/sentry-javascript/pull/13838
- https://github.com/getsentry/sentry-javascript/commit/35bdc87dee3498794e34c1ad35dd9927950c8766
- https://github.com/getsentry/sentry-javascript
- https://github.com/getsentry/sentry-javascript/releases/tag/7.119.1
- https://github.com/getsentry/sentry-javascript/releases/tag/8.33.0

Page: https://cve.now/GHSA-593M-55HH-J8GV

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
