Affected versions of react-dom are vulnerable to Cross-Site Scripting (XSS). The package fails to validate attribute names in HTML tags which may lead to Cross-Site Scripting in specific scenarios. This may allow attackers to execute arbitrary JavaScript in the victim's browser. To be affected by this vulnerability, the application needs to:
be a server-side React app
be rendered to HTML using ReactDOMServer
include an attribute name from user input in an HTML tag
Recommendation
If you are using react-dom 16.0.x, upgrade to 16.0.1 or later.
If you are using react-dom 16.1.x, upgrade to 16.1.2 or later.
If you are using react-dom 16.2.x, upgrade to 16.2.1 or later.
If you are using react-dom 16.3.x, upgrade to 16.3.3 or later.
If you are using react-dom 16.4.x, upgrade to 16.4.2 or later.
Release Notes
facebook/react (react-dom)
### [`v16.4.2`](https://redirect.github.com/facebook/react/blob/HEAD/CHANGELOG.md#1642-August-1-2018)
[Compare Source](https://redirect.github.com/facebook/react/compare/v16.4.1...v16.4.2)
##### React DOM Server
- Fix a [potential XSS vulnerability when the attacker controls an attribute name](https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html) (`CVE-2018-6341`). This fix is available in the latest `react-dom@16.4.2`, as well as in previous affected minor versions: `react-dom@16.0.1`, `react-dom@16.1.2`, `react-dom@16.2.1`, and `react-dom@16.3.3`. ([@gaearon](https://redirect.github.com/gaearon) in [#13302](https://redirect.github.com/facebook/react/pull/13302))
- Fix a crash in the server renderer when an attribute is called `hasOwnProperty`. This fix is only available in `react-dom@16.4.2`. ([@gaearon](https://redirect.github.com/gaearon) in [#13303](https://redirect.github.com/facebook/react/pull/13303))
Configuration
đ Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
đŠ Automerge: Enabled.
â» Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
đ Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
16.4.1
->16.4.2
GitHub Vulnerability Alerts
CVE-2018-6341
Affected versions of
react-dom
are vulnerable to Cross-Site Scripting (XSS). The package fails to validate attribute names in HTML tags which may lead to Cross-Site Scripting in specific scenarios. This may allow attackers to execute arbitrary JavaScript in the victim's browser. To be affected by this vulnerability, the application needs to:ReactDOMServer
Recommendation
If you are using
react-dom
16.0.x, upgrade to 16.0.1 or later.If you are using
react-dom
16.1.x, upgrade to 16.1.2 or later.If you are using
react-dom
16.2.x, upgrade to 16.2.1 or later.If you are using
react-dom
16.3.x, upgrade to 16.3.3 or later.If you are using
react-dom
16.4.x, upgrade to 16.4.2 or later.Release Notes
facebook/react (react-dom)
### [`v16.4.2`](https://redirect.github.com/facebook/react/blob/HEAD/CHANGELOG.md#1642-August-1-2018) [Compare Source](https://redirect.github.com/facebook/react/compare/v16.4.1...v16.4.2) ##### React DOM Server - Fix a [potential XSS vulnerability when the attacker controls an attribute name](https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html) (`CVE-2018-6341`). This fix is available in the latest `react-dom@16.4.2`, as well as in previous affected minor versions: `react-dom@16.0.1`, `react-dom@16.1.2`, `react-dom@16.2.1`, and `react-dom@16.3.3`. ([@gaearon](https://redirect.github.com/gaearon) in [#13302](https://redirect.github.com/facebook/react/pull/13302)) - Fix a crash in the server renderer when an attribute is called `hasOwnProperty`. This fix is only available in `react-dom@16.4.2`. ([@gaearon](https://redirect.github.com/gaearon) in [#13303](https://redirect.github.com/facebook/react/pull/13303))Configuration
đ Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
đŠ Automerge: Enabled.
â» Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
đ Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.