ajinabraham.njsscan.electronjs.security_electron.electron_experimental_features

profile photo of ajinabrahamajinabraham
Author
unknown
Download Count*
License

Experimental features are not expected to be in production ready applications.

Run Locally

Run in CI

Defintion

rules:
  - id: electron_experimental_features
    patterns:
      - pattern-either:
          - pattern: |
              new BrowserWindow({webPreferences: {experimentalFeatures: true}})
          - pattern: |
              var $X = {webPreferences: {experimentalFeatures: true}};
    message: Experimental features are not expected to be in production ready
      applications.
    languages:
      - javascript
    severity: WARNING
    metadata:
      owasp-web: a6
      cwe: cwe-272
      license: LGPL-3.0-or-later
      vulnerability_class:
        - Other