Skip to content

[AJS 2.0] Resolve domify 1.4.1 for every integration #591

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2021
Merged

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