Skip to content

@sentry/browser is failing security scans due to remote code injection risk #17267

@gajus

Description

@gajus

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

9.43.0

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

We are using Sentry in a browser extension.

Our recent submission to Chrome store was rejected due to the risk of remote code injection pointing to the following code snippet:

 static/background/index.js: r = t ? .getOptions() ? .cdnBaseUrl || "https://browser.sentry-cdn.com"; return new URL(`/${(0,s.SDK_VERSION)}/${e}.min.js`, r).toString()

Expected Result

@sentry/browser should not include the ability to inject remote code.

Actual Result

@sentry/browser includes the ability to execute remote code.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions