Skip to content

Conversation

juliofarah
Copy link
Contributor

@juliofarah juliofarah commented Apr 29, 2021

What does this PR do?

This PR fixes a potential XSS vulnerability present in every single destination library for AJS 2.0 only.
We do this by telling webpack to always resolve domify on version 1.4.1 when building the destination libraries.

Testing

  • Testing completed successfully by uploading the final bundles to S3 and testing it end to end with analytics 2.0 locally. See the code changes reflected here:
    Screen Shot 2021-04-29 at 12 44 24 PM

Any background context you want to provide?
Domify is used by analytics.js-integration, the base code for every destination library we have.
Ideally, we should have analytics.js-integration updated for every destination, but that would require updating 180+ libraries and running a release train for all of them. In addition, not all libraries use the latest version of analytics.js-integration, increasing the amount of changes deployed.

sindresorhus/domify#48

@juliofarah juliofarah marked this pull request as ready for review April 29, 2021 19:51
@juliofarah juliofarah merged commit bc8fb1e into master Apr 29, 2021
@juliofarah juliofarah deleted the domify branch April 29, 2021 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants