Skip to content

Unsafe assignment to innerHTML in content script MV2 #1583

@oyzamil

Description

@oyzamil

Describe the bug

Unsafe assignment to innerHTML
The Function constructor is eval.

Facing this issue when uploading the extension to the Firefox store.

Please help me solve it.

Reproduction

Its private repo of a client

Steps to reproduce

No response

System Info

System:
    OS: Windows 11 10.0.26100
    CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
    Memory: 1.22 GB / 7.88 GB
  Binaries:
    Node: 20.15.1 - C:\Program Files\nodejs\node.EXE
    npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 10.8.0 - ~\AppData\Local\pnpm\pnpm.CMD
    bun: 1.2.5 - ~\.bun\bin\bun.EXE
  Browsers:
    Edge: Chromium (131.0.2903.112)
    Internet Explorer: 11.0.26100.1882

Used Package Manager

bun

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-reproductionThe issue doesn't include a minimal reproduction for maintainers to use to solve the issue.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions