Skip to content

Missing CSP checks for most JS evaluation entrypoints #36437

@jdm

Description

@jdm

Our script-related CSP checks currently only fire for eval() and other dynamic JS execution tools, according to the SpiderMonkey documentation.

We need some explicit CSP checks in code that evaluates JS scripts:, <script module>`, event listener attributes, javascript: URLs):

Tested by https://github.com/servo/servo/tree/main/tests/wpt/tests/content-security-policy/script-src .

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions