mediawiki/extensions/CodeMirror: main (log #2214793)

sourcepatches

This run took 154 seconds.

$ date
--- stdout ---
Tue Nov 18 03:51:03 UTC 2025

--- end ---
$ git clone file:///srv/git/mediawiki-extensions-CodeMirror.git repo --depth=1 -b master
--- stderr ---
Cloning into 'repo'...
--- stdout ---

--- end ---
$ git config user.name libraryupgrader
--- stdout ---

--- end ---
$ git config user.email tools.libraryupgrader@tools.wmflabs.org
--- stdout ---

--- end ---
$ git submodule update --init
--- stdout ---

--- end ---
$ grr init
--- stdout ---
Installed commit-msg hook.

--- end ---
$ git show-ref refs/heads/master
--- stdout ---
a978520fbcd1e56c5feb9ec2d045dd59f0ad878e refs/heads/master

--- end ---
$ /usr/bin/npm audit --json
--- stdout ---
{
  "auditReportVersion": 2,
  "vulnerabilities": {
    "form-data": {
      "name": "form-data",
      "severity": "critical",
      "isDirect": false,
      "via": [
        {
          "source": 1109540,
          "name": "form-data",
          "dependency": "form-data",
          "title": "form-data uses unsafe random function in form-data for choosing boundary",
          "url": "https://github.com/advisories/GHSA-fjxv-7rqg-78g4",
          "severity": "critical",
          "cwe": [
            "CWE-330"
          ],
          "cvss": {
            "score": 0,
            "vectorString": null
          },
          "range": "<2.5.4"
        }
      ],
      "effects": [
        "request"
      ],
      "range": "<2.5.4",
      "nodes": [
        "node_modules/request/node_modules/form-data"
      ],
      "fixAvailable": {
        "name": "wdio-mediawiki",
        "version": "6.0.0",
        "isSemVerMajor": true
      }
    },
    "glob": {
      "name": "glob",
      "severity": "high",
      "isDirect": false,
      "via": [
        {
          "source": 1109809,
          "name": "glob",
          "dependency": "glob",
          "title": "glob CLI: Command injection via -c/--cmd executes matches with shell:true",
          "url": "https://github.com/advisories/GHSA-5j98-mcp5-4vw2",
          "severity": "high",
          "cwe": [
            "CWE-78"
          ],
          "cvss": {
            "score": 7.5,
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
          },
          "range": ">=10.3.7 <=11.0.3"
        }
      ],
      "effects": [],
      "range": "10.3.7 - 11.0.3",
      "nodes": [
        "node_modules/@wdio/config/node_modules/glob",
        "node_modules/archiver-utils/node_modules/glob"
      ],
      "fixAvailable": true
    },
    "mwbot": {
      "name": "mwbot",
      "severity": "moderate",
      "isDirect": false,
      "via": [
        "request"
      ],
      "effects": [
        "wdio-mediawiki"
      ],
      "range": ">=0.1.6",
      "nodes": [
        "node_modules/mwbot"
      ],
      "fixAvailable": {
        "name": "wdio-mediawiki",
        "version": "6.0.0",
        "isSemVerMajor": true
      }
    },
    "request": {
      "name": "request",
      "severity": "critical",
      "isDirect": false,
      "via": [
        {
          "source": 1096727,
          "name": "request",
          "dependency": "request",
          "title": "Server-Side Request Forgery in Request",
          "url": "https://github.com/advisories/GHSA-p8p7-x288-28g6",
          "severity": "moderate",
          "cwe": [
            "CWE-918"
          ],
          "cvss": {
            "score": 6.1,
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
          },
          "range": "<=2.88.2"
        },
        "form-data",
        "tough-cookie"
      ],
      "effects": [
        "mwbot"
      ],
      "range": "*",
      "nodes": [
        "node_modules/request"
      ],
      "fixAvailable": {
        "name": "wdio-mediawiki",
        "version": "6.0.0",
        "isSemVerMajor": true
      }
    },
    "tough-cookie": {
      "name": "tough-cookie",
      "severity": "moderate",
      "isDirect": false,
      "via": [
        {
          "source": 1097682,
          "name": "tough-cookie",
          "dependency": "tough-cookie",
          "title": "tough-cookie Prototype Pollution vulnerability",
          "url": "https://github.com/advisories/GHSA-72xf-g2v4-qvf3",
          "severity": "moderate",
          "cwe": [
            "CWE-1321"
          ],
          "cvss": {
            "score": 6.5,
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
          },
          "range": "<4.1.3"
        }
      ],
      "effects": [
        "request"
      ],
      "range": "<4.1.3",
      "nodes": [
        "node_modules/request/node_modules/tough-cookie"
      ],
      "fixAvailable": {
        "name": "wdio-mediawiki",
        "version": "6.0.0",
        "isSemVerMajor": true
      }
    },
    "wdio-mediawiki": {
      "name": "wdio-mediawiki",
      "severity": "moderate",
      "isDirect": true,
      "via": [
        "mwbot"
      ],
      "effects": [],
      "range": "<=5.1.0",
      "nodes": [
        "node_modules/wdio-mediawiki"
      ],
      "fixAvailable": {
        "name": "wdio-mediawiki",
        "version": "6.0.0",
        "isSemVerMajor": true
      }
    }
  },
  "metadata": {
    "vulnerabilities": {
      "info": 0,
      "low": 0,
      "moderate": 3,
      "high": 1,
      "critical": 2,
      "total": 6
    },
    "dependencies": {
      "prod": 1,
      "dev": 1349,
      "optional": 82,
      "peer": 17,
      "peerOptional": 0,
      "total": 1349
    }
  }
}

--- end ---
$ /usr/bin/composer install
--- stderr ---
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Updating dependencies
Lock file operations: 38 installs, 0 updates, 0 removals
  - Locking composer/pcre (3.3.2)
  - Locking composer/semver (3.4.4)
  - Locking composer/spdx-licenses (1.5.9)
  - Locking composer/xdebug-handler (3.0.5)
  - Locking dealerdirect/phpcodesniffer-composer-installer (v1.2.0)
  - Locking doctrine/deprecations (1.1.5)
  - Locking felixfbecker/advanced-json-rpc (v3.2.1)
  - Locking mediawiki/mediawiki-codesniffer (v48.0.0)
  - Locking mediawiki/mediawiki-phan-config (0.17.0)
  - Locking mediawiki/minus-x (1.1.3)
  - Locking mediawiki/phan-taint-check-plugin (7.0.0)
  - Locking microsoft/tolerant-php-parser (v0.1.2)
  - Locking netresearch/jsonmapper (v4.5.0)
  - Locking phan/phan (5.5.1)
  - Locking php-parallel-lint/php-console-color (v1.0.1)
  - Locking php-parallel-lint/php-console-highlighter (v1.0.0)
  - Locking php-parallel-lint/php-parallel-lint (v1.4.0)
  - Locking phpcsstandards/phpcsextra (1.4.0)
  - Locking phpcsstandards/phpcsutils (1.1.1)
  - Locking phpdocumentor/reflection-common (2.2.0)
  - Locking phpdocumentor/reflection-docblock (5.6.3)
  - Locking phpdocumentor/type-resolver (1.10.0)
  - Locking phpstan/phpdoc-parser (2.3.0)
  - Locking psr/container (2.0.2)
  - Locking psr/log (3.0.2)
  - Locking sabre/event (5.1.7)
  - Locking squizlabs/php_codesniffer (3.13.2)
  - Locking symfony/console (v7.3.6)
  - Locking symfony/deprecation-contracts (v3.6.0)
  - Locking symfony/polyfill-ctype (v1.33.0)
  - Locking symfony/polyfill-intl-grapheme (v1.33.0)
  - Locking symfony/polyfill-intl-normalizer (v1.33.0)
  - Locking symfony/polyfill-mbstring (v1.33.0)
  - Locking symfony/polyfill-php80 (v1.33.0)
  - Locking symfony/service-contracts (v3.6.1)
  - Locking symfony/string (v7.3.4)
  - Locking tysonandre/var_representation_polyfill (0.1.3)
  - Locking webmozart/assert (1.12.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 38 installs, 0 updates, 0 removals
    0 [>---------------------------]    0 [->--------------------------]
  - Installing squizlabs/php_codesniffer (3.13.2): Extracting archive
  - Installing dealerdirect/phpcodesniffer-composer-installer (v1.2.0): Extracting archive
  - Installing composer/pcre (3.3.2): Extracting archive
  - Installing phpcsstandards/phpcsutils (1.1.1): Extracting archive
  - Installing phpcsstandards/phpcsextra (1.4.0): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.33.0): Extracting archive
  - Installing composer/spdx-licenses (1.5.9): Extracting archive
  - Installing composer/semver (3.4.4): Extracting archive
  - Installing mediawiki/mediawiki-codesniffer (v48.0.0): Extracting archive
  - Installing tysonandre/var_representation_polyfill (0.1.3): Extracting archive
  - Installing symfony/polyfill-php80 (v1.33.0): Extracting archive
  - Installing symfony/polyfill-intl-normalizer (v1.33.0): Extracting archive
  - Installing symfony/polyfill-intl-grapheme (v1.33.0): Extracting archive
  - Installing symfony/polyfill-ctype (v1.33.0): Extracting archive
  - Installing symfony/string (v7.3.4): Extracting archive
  - Installing symfony/deprecation-contracts (v3.6.0): Extracting archive
  - Installing psr/container (2.0.2): Extracting archive
  - Installing symfony/service-contracts (v3.6.1): Extracting archive
  - Installing symfony/console (v7.3.6): Extracting archive
  - Installing sabre/event (5.1.7): Extracting archive
  - Installing netresearch/jsonmapper (v4.5.0): Extracting archive
  - Installing microsoft/tolerant-php-parser (v0.1.2): Extracting archive
  - Installing webmozart/assert (1.12.1): Extracting archive
  - Installing phpstan/phpdoc-parser (2.3.0): Extracting archive
  - Installing phpdocumentor/reflection-common (2.2.0): Extracting archive
  - Installing doctrine/deprecations (1.1.5): Extracting archive
  - Installing phpdocumentor/type-resolver (1.10.0): Extracting archive
  - Installing phpdocumentor/reflection-docblock (5.6.3): Extracting archive
  - Installing felixfbecker/advanced-json-rpc (v3.2.1): Extracting archive
  - Installing psr/log (3.0.2): Extracting archive
  - Installing composer/xdebug-handler (3.0.5): Extracting archive
  - Installing phan/phan (5.5.1): Extracting archive
  - Installing mediawiki/phan-taint-check-plugin (7.0.0): Extracting archive
  - Installing mediawiki/mediawiki-phan-config (0.17.0): Extracting archive
  - Installing mediawiki/minus-x (1.1.3): Extracting archive
  - Installing php-parallel-lint/php-console-color (v1.0.1): Extracting archive
  - Installing php-parallel-lint/php-console-highlighter (v1.0.0): Extracting archive
  - Installing php-parallel-lint/php-parallel-lint (v1.4.0): Extracting archive
  0/36 [>---------------------------]   0%
 28/36 [=====================>------]  77%
 36/36 [============================] 100%
1 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
17 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
--- stdout ---
PHP CodeSniffer Config installed_paths set to ../../mediawiki/mediawiki-codesniffer,../../phpcsstandards/phpcsextra,../../phpcsstandards/phpcsutils

--- end ---
$ /usr/bin/npm audit --json
--- stdout ---
{
  "auditReportVersion": 2,
  "vulnerabilities": {
    "form-data": {
      "name": "form-data",
      "severity": "critical",
      "isDirect": false,
      "via": [
        {
          "source": 1109540,
          "name": "form-data",
          "dependency": "form-data",
          "title": "form-data uses unsafe random function in form-data for choosing boundary",
          "url": "https://github.com/advisories/GHSA-fjxv-7rqg-78g4",
          "severity": "critical",
          "cwe": [
            "CWE-330"
          ],
          "cvss": {
            "score": 0,
            "vectorString": null
          },
          "range": "<2.5.4"
        }
      ],
      "effects": [
        "request"
      ],
      "range": "<2.5.4",
      "nodes": [
        "node_modules/request/node_modules/form-data"
      ],
      "fixAvailable": {
        "name": "wdio-mediawiki",
        "version": "6.0.0",
        "isSemVerMajor": true
      }
    },
    "glob": {
      "name": "glob",
      "severity": "high",
      "isDirect": false,
      "via": [
        {
          "source": 1109809,
          "name": "glob",
          "dependency": "glob",
          "title": "glob CLI: Command injection via -c/--cmd executes matches with shell:true",
          "url": "https://github.com/advisories/GHSA-5j98-mcp5-4vw2",
          "severity": "high",
          "cwe": [
            "CWE-78"
          ],
          "cvss": {
            "score": 7.5,
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
          },
          "range": ">=10.3.7 <=11.0.3"
        }
      ],
      "effects": [],
      "range": "10.3.7 - 11.0.3",
      "nodes": [
        "node_modules/@wdio/config/node_modules/glob",
        "node_modules/archiver-utils/node_modules/glob"
      ],
      "fixAvailable": true
    },
    "mwbot": {
      "name": "mwbot",
      "severity": "moderate",
      "isDirect": false,
      "via": [
        "request"
      ],
      "effects": [
        "wdio-mediawiki"
      ],
      "range": ">=0.1.6",
      "nodes": [
        "node_modules/mwbot"
      ],
      "fixAvailable": {
        "name": "wdio-mediawiki",
        "version": "6.0.0",
        "isSemVerMajor": true
      }
    },
    "request": {
      "name": "request",
      "severity": "critical",
      "isDirect": false,
      "via": [
        {
          "source": 1096727,
          "name": "request",
          "dependency": "request",
          "title": "Server-Side Request Forgery in Request",
          "url": "https://github.com/advisories/GHSA-p8p7-x288-28g6",
          "severity": "moderate",
          "cwe": [
            "CWE-918"
          ],
          "cvss": {
            "score": 6.1,
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
          },
          "range": "<=2.88.2"
        },
        "form-data",
        "tough-cookie"
      ],
      "effects": [
        "mwbot"
      ],
      "range": "*",
      "nodes": [
        "node_modules/request"
      ],
      "fixAvailable": {
        "name": "wdio-mediawiki",
        "version": "6.0.0",
        "isSemVerMajor": true
      }
    },
    "tough-cookie": {
      "name": "tough-cookie",
      "severity": "moderate",
      "isDirect": false,
      "via": [
        {
          "source": 1097682,
          "name": "tough-cookie",
          "dependency": "tough-cookie",
          "title": "tough-cookie Prototype Pollution vulnerability",
          "url": "https://github.com/advisories/GHSA-72xf-g2v4-qvf3",
          "severity": "moderate",
          "cwe": [
            "CWE-1321"
          ],
          "cvss": {
            "score": 6.5,
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
          },
          "range": "<4.1.3"
        }
      ],
      "effects": [
        "request"
      ],
      "range": "<4.1.3",
      "nodes": [
        "node_modules/request/node_modules/tough-cookie"
      ],
      "fixAvailable": {
        "name": "wdio-mediawiki",
        "version": "6.0.0",
        "isSemVerMajor": true
      }
    },
    "wdio-mediawiki": {
      "name": "wdio-mediawiki",
      "severity": "moderate",
      "isDirect": true,
      "via": [
        "mwbot"
      ],
      "effects": [],
      "range": "<=5.1.0",
      "nodes": [
        "node_modules/wdio-mediawiki"
      ],
      "fixAvailable": {
        "name": "wdio-mediawiki",
        "version": "6.0.0",
        "isSemVerMajor": true
      }
    }
  },
  "metadata": {
    "vulnerabilities": {
      "info": 0,
      "low": 0,
      "moderate": 3,
      "high": 1,
      "critical": 2,
      "total": 6
    },
    "dependencies": {
      "prod": 1,
      "dev": 1349,
      "optional": 82,
      "peer": 17,
      "peerOptional": 0,
      "total": 1349
    }
  }
}

--- end ---
Attempting to npm audit fix
$ /usr/bin/npm audit fix --dry-run --only=dev --json
--- stderr ---
npm WARN invalid config only="dev" set in command line options
npm WARN invalid config Must be one of: null, prod, production
--- stdout ---
{
  "added": 1349,
  "removed": 0,
  "changed": 0,
  "audited": 1350,
  "funding": 232,
  "audit": {
    "auditReportVersion": 2,
    "vulnerabilities": {
      "form-data": {
        "name": "form-data",
        "severity": "critical",
        "isDirect": false,
        "via": [
          {
            "source": 1109540,
            "name": "form-data",
            "dependency": "form-data",
            "title": "form-data uses unsafe random function in form-data for choosing boundary",
            "url": "https://github.com/advisories/GHSA-fjxv-7rqg-78g4",
            "severity": "critical",
            "cwe": [
              "CWE-330"
            ],
            "cvss": {
              "score": 0,
              "vectorString": null
            },
            "range": "<2.5.4"
          }
        ],
        "effects": [
          "request"
        ],
        "range": "<2.5.4",
        "nodes": [
          "node_modules/request/node_modules/form-data"
        ],
        "fixAvailable": {
          "name": "wdio-mediawiki",
          "version": "6.0.0",
          "isSemVerMajor": true
        }
      },
      "glob": {
        "name": "glob",
        "severity": "high",
        "isDirect": false,
        "via": [
          {
            "source": 1109809,
            "name": "glob",
            "dependency": "glob",
            "title": "glob CLI: Command injection via -c/--cmd executes matches with shell:true",
            "url": "https://github.com/advisories/GHSA-5j98-mcp5-4vw2",
            "severity": "high",
            "cwe": [
              "CWE-78"
            ],
            "cvss": {
              "score": 7.5,
              "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
            },
            "range": ">=10.3.7 <=11.0.3"
          }
        ],
        "effects": [],
        "range": "10.3.7 - 11.0.3",
        "nodes": [
          "node_modules/@wdio/config/node_modules/glob",
          "node_modules/archiver-utils/node_modules/glob"
        ],
        "fixAvailable": true
      },
      "mwbot": {
        "name": "mwbot",
        "severity": "moderate",
        "isDirect": false,
        "via": [
          "request"
        ],
        "effects": [
          "wdio-mediawiki"
        ],
        "range": ">=0.1.6",
        "nodes": [
          "node_modules/mwbot"
        ],
        "fixAvailable": {
          "name": "wdio-mediawiki",
          "version": "6.0.0",
          "isSemVerMajor": true
        }
      },
      "request": {
        "name": "request",
        "severity": "critical",
        "isDirect": false,
        "via": [
          {
            "source": 1096727,
            "name": "request",
            "dependency": "request",
            "title": "Server-Side Request Forgery in Request",
            "url": "https://github.com/advisories/GHSA-p8p7-x288-28g6",
            "severity": "moderate",
            "cwe": [
              "CWE-918"
            ],
            "cvss": {
              "score": 6.1,
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
            },
            "range": "<=2.88.2"
          },
          "form-data",
          "tough-cookie"
        ],
        "effects": [
          "mwbot"
        ],
        "range": "*",
        "nodes": [
          "node_modules/request"
        ],
        "fixAvailable": {
          "name": "wdio-mediawiki",
          "version": "6.0.0",
          "isSemVerMajor": true
        }
      },
      "tough-cookie": {
        "name": "tough-cookie",
        "severity": "moderate",
        "isDirect": false,
        "via": [
          {
            "source": 1097682,
            "name": "tough-cookie",
            "dependency": "tough-cookie",
            "title": "tough-cookie Prototype Pollution vulnerability",
            "url": "https://github.com/advisories/GHSA-72xf-g2v4-qvf3",
            "severity": "moderate",
            "cwe": [
              "CWE-1321"
            ],
            "cvss": {
              "score": 6.5,
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
            },
            "range": "<4.1.3"
          }
        ],
        "effects": [
          "request"
        ],
        "range": "<4.1.3",
        "nodes": [
          "node_modules/request/node_modules/tough-cookie"
        ],
        "fixAvailable": {
          "name": "wdio-mediawiki",
          "version": "6.0.0",
          "isSemVerMajor": true
        }
      },
      "wdio-mediawiki": {
        "name": "wdio-mediawiki",
        "severity": "moderate",
        "isDirect": true,
        "via": [
          "mwbot"
        ],
        "effects": [],
        "range": "<=5.1.0",
        "nodes": [
          "node_modules/wdio-mediawiki"
        ],
        "fixAvailable": {
          "name": "wdio-mediawiki",
          "version": "6.0.0",
          "isSemVerMajor": true
        }
      }
    },
    "metadata": {
      "vulnerabilities": {
        "info": 0,
        "low": 0,
        "moderate": 3,
        "high": 1,
        "critical": 2,
        "total": 6
      },
      "dependencies": {
        "prod": 1,
        "dev": 1349,
        "optional": 82,
        "peer": 17,
        "peerOptional": 0,
        "total": 1349
      }
    }
  }
}

--- end ---
{"added": 1349, "removed": 0, "changed": 0, "audited": 1350, "funding": 232, "audit": {"auditReportVersion": 2, "vulnerabilities": {"form-data": {"name": "form-data", "severity": "critical", "isDirect": false, "via": [{"source": 1109540, "name": "form-data", "dependency": "form-data", "title": "form-data uses unsafe random function in form-data for choosing boundary", "url": "https://github.com/advisories/GHSA-fjxv-7rqg-78g4", "severity": "critical", "cwe": ["CWE-330"], "cvss": {"score": 0, "vectorString": null}, "range": "<2.5.4"}], "effects": ["request"], "range": "<2.5.4", "nodes": ["node_modules/request/node_modules/form-data"], "fixAvailable": {"name": "wdio-mediawiki", "version": "6.0.0", "isSemVerMajor": true}}, "glob": {"name": "glob", "severity": "high", "isDirect": false, "via": [{"source": 1109809, "name": "glob", "dependency": "glob", "title": "glob CLI: Command injection via -c/--cmd executes matches with shell:true", "url": "https://github.com/advisories/GHSA-5j98-mcp5-4vw2", "severity": "high", "cwe": ["CWE-78"], "cvss": {"score": 7.5, "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"}, "range": ">=10.3.7 <=11.0.3"}], "effects": [], "range": "10.3.7 - 11.0.3", "nodes": ["node_modules/@wdio/config/node_modules/glob", "node_modules/archiver-utils/node_modules/glob"], "fixAvailable": true}, "mwbot": {"name": "mwbot", "severity": "moderate", "isDirect": false, "via": ["request"], "effects": ["wdio-mediawiki"], "range": ">=0.1.6", "nodes": ["node_modules/mwbot"], "fixAvailable": {"name": "wdio-mediawiki", "version": "6.0.0", "isSemVerMajor": true}}, "request": {"name": "request", "severity": "critical", "isDirect": false, "via": [{"source": 1096727, "name": "request", "dependency": "request", "title": "Server-Side Request Forgery in Request", "url": "https://github.com/advisories/GHSA-p8p7-x288-28g6", "severity": "moderate", "cwe": ["CWE-918"], "cvss": {"score": 6.1, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}, "range": "<=2.88.2"}, "form-data", "tough-cookie"], "effects": ["mwbot"], "range": "*", "nodes": ["node_modules/request"], "fixAvailable": {"name": "wdio-mediawiki", "version": "6.0.0", "isSemVerMajor": true}}, "tough-cookie": {"name": "tough-cookie", "severity": "moderate", "isDirect": false, "via": [{"source": 1097682, "name": "tough-cookie", "dependency": "tough-cookie", "title": "tough-cookie Prototype Pollution vulnerability", "url": "https://github.com/advisories/GHSA-72xf-g2v4-qvf3", "severity": "moderate", "cwe": ["CWE-1321"], "cvss": {"score": 6.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"}, "range": "<4.1.3"}], "effects": ["request"], "range": "<4.1.3", "nodes": ["node_modules/request/node_modules/tough-cookie"], "fixAvailable": {"name": "wdio-mediawiki", "version": "6.0.0", "isSemVerMajor": true}}, "wdio-mediawiki": {"name": "wdio-mediawiki", "severity": "moderate", "isDirect": true, "via": ["mwbot"], "effects": [], "range": "<=5.1.0", "nodes": ["node_modules/wdio-mediawiki"], "fixAvailable": {"name": "wdio-mediawiki", "version": "6.0.0", "isSemVerMajor": true}}}, "metadata": {"vulnerabilities": {"info": 0, "low": 0, "moderate": 3, "high": 1, "critical": 2, "total": 6}, "dependencies": {"prod": 1, "dev": 1349, "optional": 82, "peer": 17, "peerOptional": 0, "total": 1349}}}}
$ /usr/bin/npm audit fix --only=dev
--- stderr ---
npm WARN invalid config only="dev" set in command line options
npm WARN invalid config Must be one of: null, prod, production
npm WARN deprecated @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead
npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
npm WARN deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm WARN deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
npm WARN deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.
--- stdout ---

added 1310 packages, and audited 1311 packages in 34s

232 packages are looking for funding
  run `npm fund` for details

# npm audit report

form-data  <2.5.4
Severity: critical
form-data uses unsafe random function in form-data for choosing boundary - https://github.com/advisories/GHSA-fjxv-7rqg-78g4
fix available via `npm audit fix --force`
Will install wdio-mediawiki@6.0.0, which is a breaking change
node_modules/request/node_modules/form-data
  request  *
  Depends on vulnerable versions of form-data
  Depends on vulnerable versions of tough-cookie
  node_modules/request
    mwbot  >=0.1.6
    Depends on vulnerable versions of request
    node_modules/mwbot
      wdio-mediawiki  <=5.1.0
      Depends on vulnerable versions of mwbot
      node_modules/wdio-mediawiki

glob  10.3.7 - 11.0.3
Severity: high
glob CLI: Command injection via -c/--cmd executes matches with shell:true - https://github.com/advisories/GHSA-5j98-mcp5-4vw2
fix available via `npm audit fix`
node_modules/@wdio/config/node_modules/glob
node_modules/archiver-utils/node_modules/glob


tough-cookie  <4.1.3
Severity: moderate
tough-cookie Prototype Pollution vulnerability - https://github.com/advisories/GHSA-72xf-g2v4-qvf3
fix available via `npm audit fix --force`
Will install wdio-mediawiki@6.0.0, which is a breaking change
node_modules/request/node_modules/tough-cookie

6 vulnerabilities (3 moderate, 1 high, 2 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

--- end ---
Verifying that tests still pass
$ /usr/bin/npm ci
--- stderr ---
npm WARN deprecated @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead
npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
npm WARN deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm WARN deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
npm WARN deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.
--- stdout ---

added 1310 packages, and audited 1311 packages in 47s

232 packages are looking for funding
  run `npm fund` for details

6 vulnerabilities (3 moderate, 1 high, 2 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

--- end ---
$ /usr/bin/npm test
--- stderr ---
PASS tests/jest/codemirror.preferences.test.js (5.608 s)
PASS tests/jest/codemirror.test.js (7.701 s)
PASS tests/jest/codemirror.wikieditor.test.js
PASS tests/jest/codemirror.codex.test.js
PASS tests/jest/modes/codemirror.mediawiki.lint.test.js
PASS tests/jest/modes/codemirror.mediawiki.test.js (8.638 s)
PASS tests/jest/codemirror.search.test.js
PASS tests/jest/modes/codemirror.mediawiki.autocomplete.test.js
PASS tests/jest/codemirror.extensionRegistry.test.js
PASS tests/jest/codemirror.keymap.test.js
PASS tests/jest/modes/codemirror.mediawiki.keymap.test.js
PASS tests/jest/modes/codemirror.lua.autocomplete.test.js
PASS tests/jest/codemirror.matchbrackets.test.js
PASS tests/jest/codemirror.visualEditor.test.js
PASS tests/jest/codemirror.lint.test.js
PASS tests/jest/codemirror.child.test.js
PASS tests/jest/codemirror.bidiIsolation.test.js
PASS tests/jest/codemirror.gotoLine.test.js
PASS tests/jest/modes/codemirror.mediawiki.openLinks.test.js
PASS tests/jest/modes/codemirror.css.test.js
PASS tests/jest/modes/codemirror.javascript.autocomplete.test.js
PASS tests/jest/modes/codemirror.lua.codeFolding.test.js
PASS tests/jest/modes/codemirror.css.autocomplete.test.js
PASS tests/jest/codemirror.init.test.js
PASS tests/jest/modes/codemirror.javascript.test.js (6.65 s)

Test Suites: 25 passed, 25 total
Tests:       386 passed, 386 total
Snapshots:   0 total
Time:        17.747 s
Ran all test suites.

resources/codemirror.bundle.lib.js → resources/lib/codemirror6.bundle.lib.js...
created resources/lib/codemirror6.bundle.lib.js in 1.7s

resources/modes/codemirror.bundle.modes.js → resources/lib/codemirror6.bundle.modes.js...
(!) Conflicting re-exports
"resources/modes/codemirror.bundle.modes.js" re-exports "autoCloseTags" from both "node_modules/@codemirror/lang-javascript/dist/index.js" and "node_modules/@codemirror/lang-html/dist/index.js" (will be ignored).
created resources/lib/codemirror6.bundle.modes.js in 380ms

  resources/workers/css/worker.min.js  674.4kb

⚡ Done in 158ms

  resources/workers/javascript/worker.min.js  1.1mb ⚠️

⚡ Done in 189ms

  resources/workers/lua/worker.min.js  604.3kb

⚡ Done in 57ms

  resources/workers/mediawiki/worker.min.js  121.7kb

⚡ Done in 50ms
--- stdout ---

> test
> npm run test:lint && npm run test:unit && npm run check-built-assets


> test:lint
> npm run test:lint:styles && npm run test:lint:js && npm run test:lint:i18n


> test:lint:styles
> stylelint --cache "resources/**/*.less"


> test:lint:js
> eslint --cache .


/src/repo/resources/codemirror.extensionRegistry.js
   10:1  warning  The type 'CodeMirror.initialize' is undefined            jsdoc/no-undefined-types
   10:1  warning  The type 'CodeMirror.applyExtension' is undefined        jsdoc/no-undefined-types
   10:1  warning  The type 'CodeMirror.extensionRegistry' is undefined     jsdoc/no-undefined-types
  105:1  warning  The type 'CodeMirrorPreferences.extension' is undefined  jsdoc/no-undefined-types

/src/repo/resources/codemirror.js
   306:1  warning  The type 'CodeMirror.view' is undefined                       jsdoc/no-undefined-types
   306:1  warning  The type 'CodeMirror.view' is undefined                       jsdoc/no-undefined-types
   434:1  warning  The type 'CodeMirror.ext.CodeMirror.input' is undefined       jsdoc/no-undefined-types
   455:1  warning  The type 'CodeMirror.textarea' is undefined                   jsdoc/no-undefined-types
   662:1  warning  The type 'CodeMirror.ext.CodeMirror.initialize' is undefined  jsdoc/no-undefined-types
   663:1  warning  The type 'CodeMirror.ext.CodeMirror.ready' is undefined       jsdoc/no-undefined-types
   866:1  warning  The type 'CodeMirror.view' is undefined                       jsdoc/no-undefined-types
   866:1  warning  The type 'CodeMirror.extensionRegistry' is undefined          jsdoc/no-undefined-types
   900:1  warning  The type 'CodeMirror.ext.CodeMirror.toggle' is undefined      jsdoc/no-undefined-types
   903:1  warning  The type 'CodeMirror.ext.CodeMirror.toggle' is undefined      jsdoc/no-undefined-types
   933:1  warning  The type 'CodeMirror.textarea' is undefined                   jsdoc/no-undefined-types
   933:1  warning  The type 'CodeMirror.state' is undefined                      jsdoc/no-undefined-types
  1000:1  warning  The type 'CodeMirror.textarea' is undefined                   jsdoc/no-undefined-types
  1000:1  warning  The type 'CodeMirror.view' is undefined                       jsdoc/no-undefined-types
  1000:1  warning  The type 'CodeMirror.state' is undefined                      jsdoc/no-undefined-types
  1058:1  warning  The type 'CodeMirror.ext.CodeMirror.destroy' is undefined     jsdoc/no-undefined-types

/src/repo/resources/codemirror.keymap.js
  24:1  warning  The type 'CodeMirror.view' is undefined  jsdoc/no-undefined-types

/src/repo/resources/codemirror.preferences.js
   30:1  warning  The type 'CodeMirror.ext.CodeMirror.preferences.ready' is undefined  jsdoc/no-undefined-types
  327:1  warning  The type 'CodeMirror.ext.CodeMirror.preferences.apply' is undefined  jsdoc/no-undefined-types

/src/repo/resources/codemirror.search.js
  10:2  warning  ES2021 'String.prototype.replaceAll' method is forbidden  es-x/no-string-prototype-replaceall

/src/repo/resources/codemirror.textSelection.js
  4:1  warning  The type 'jQuery.fn.textSelection' is undefined  jsdoc/no-undefined-types

/src/repo/resources/workers/css/worker.min.js
  41:243863  warning  ES2022 'Array.prototype.at' method is forbidden   es-x/no-array-prototype-at
  41:243863  warning  ES2022 'String.prototype.at' method is forbidden  es-x/no-string-prototype-at
  41:243931  warning  ES2022 'Array.prototype.at' method is forbidden   es-x/no-array-prototype-at
  41:243931  warning  ES2022 'String.prototype.at' method is forbidden  es-x/no-string-prototype-at
  42:1426    warning  ES2022 'Array.prototype.at' method is forbidden   es-x/no-array-prototype-at
  42:1426    warning  ES2022 'String.prototype.at' method is forbidden  es-x/no-string-prototype-at
  42:3030    warning  ES2022 'Array.prototype.at' method is forbidden   es-x/no-array-prototype-at
  42:3030    warning  ES2022 'String.prototype.at' method is forbidden  es-x/no-string-prototype-at
  42:4765    warning  ES2022 'Array.prototype.at' method is forbidden   es-x/no-array-prototype-at
  42:4765    warning  ES2022 'String.prototype.at' method is forbidden  es-x/no-string-prototype-at
  42:4812    warning  ES2022 'Array.prototype.at' method is forbidden   es-x/no-array-prototype-at
  42:4812    warning  ES2022 'String.prototype.at' method is forbidden  es-x/no-string-prototype-at
  42:22354   warning  ES2022 'Array.prototype.at' method is forbidden   es-x/no-array-prototype-at
  42:22354   warning  ES2022 'String.prototype.at' method is forbidden  es-x/no-string-prototype-at
  42:22443   warning  ES2022 'Array.prototype.at' method is forbidden   es-x/no-array-prototype-at
  42:22443   warning  ES2022 'String.prototype.at' method is forbidden  es-x/no-string-prototype-at

/src/repo/resources/workers/javascript/worker.min.js
   5:18365  warning  ES2022 'Array.prototype.at' method is forbidden   es-x/no-array-prototype-at
   5:18365  warning  ES2022 'String.prototype.at' method is forbidden  es-x/no-string-prototype-at
   5:18447  warning  ES2022 'Array.prototype.at' method is forbidden   es-x/no-array-prototype-at
   5:18447  warning  ES2022 'String.prototype.at' method is forbidden  es-x/no-string-prototype-at
   5:18791  warning  ES2022 'Array.prototype.at' method is forbidden   es-x/no-array-prototype-at
   5:18791  warning  ES2022 'String.prototype.at' method is forbidden  es-x/no-string-prototype-at
  17:5117   warning  ES2022 'Array.prototype.at' method is forbidden   es-x/no-array-prototype-at
  17:6335   warning  ES2022 'String.prototype.at' method is forbidden  es-x/no-string-prototype-at
  73:35346  warning  ES2022 'Array.prototype.at' method is forbidden   es-x/no-array-prototype-at
  73:35346  warning  ES2022 'String.prototype.at' method is forbidden  es-x/no-string-prototype-at
  73:35410  warning  ES2022 'Array.prototype.at' method is forbidden   es-x/no-array-prototype-at
  73:35410  warning  ES2022 'String.prototype.at' method is forbidden  es-x/no-string-prototype-at
  73:35483  warning  ES2022 'Array.prototype.at' method is forbidden   es-x/no-array-prototype-at
  73:35483  warning  ES2022 'String.prototype.at' method is forbidden  es-x/no-string-prototype-at
  73:35565  warning  ES2022 'Array.prototype.at' method is forbidden   es-x/no-array-prototype-at
  73:35565  warning  ES2022 'String.prototype.at' method is forbidden  es-x/no-string-prototype-at
  73:35826  warning  ES2022 'Array.prototype.at' method is forbidden   es-x/no-array-prototype-at
  73:35826  warning  ES2022 'String.prototype.at' method is forbidden  es-x/no-string-prototype-at

/src/repo/resources/workers/lua/worker.min.js
  4:32709  warning  ES2024 Growable SharedArrayBuffer is forbidden  es-x/no-resizable-and-growable-arraybuffers
  5:7912   warning  ES2024 Growable SharedArrayBuffer is forbidden  es-x/no-resizable-and-growable-arraybuffers

✖ 61 problems (0 errors, 61 warnings)


> test:lint:i18n
> banana-checker i18n/

Checked 1 message directory.

> test:unit
> jest

----------------------------------------|---------|----------|---------|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
File                                    | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                                                                                                                                                                                                                                                                                          
----------------------------------------|---------|----------|---------|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
All files                               |    79.1 |    70.72 |   73.84 |    79.5 |                                                                                                                                                                                                                                                                                                            
 resources                              |   84.28 |    74.55 |   77.22 |   84.65 |                                                                                                                                                                                                                                                                                                            
  codemirror.bundle.lib.js              |       0 |        0 |       0 |       0 |                                                                                                                                                                                                                                                                                                            
  codemirror.child.js                   |    87.5 |    88.88 |   85.71 |    87.5 | 52-53                                                                                                                                                                                                                                                                                                      
  codemirror.codex.js                   |   97.05 |    78.72 |   78.57 |   97.05 | 283-284,389,395-396                                                                                                                                                                                                                                                                                        
  codemirror.extensionRegistry.js       |      90 |    81.25 |     100 |      90 | 153,188-189,221                                                                                                                                                                                                                                                                                            
  codemirror.gotoLine.js                |   90.16 |    56.66 |     100 |      90 | 146,154-158,160                                                                                                                                                                                                                                                                                            
  codemirror.init.js                    |   17.07 |    18.75 |       0 |   17.07 | 26-82,96-136                                                                                                                                                                                                                                                                                               
  codemirror.js                         |   88.92 |    84.89 |   82.08 |   89.21 | 275,371-380,627-634,710,810,824-829,859,910,982,1151,1153-1169                                                                                                                                                                                                                                             
  codemirror.keymap.js                  |   97.77 |    90.36 |   93.75 |   97.77 | 242,382,418                                                                                                                                                                                                                                                                                                
  codemirror.lint.js                    |   81.11 |    86.36 |   66.66 |   81.81 | 13-21,36,40,50,62-63,82-86                                                                                                                                                                                                                                                                                 
  codemirror.matchbrackets.js           |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                                            
  codemirror.panel.js                   |     100 |      100 |   33.33 |     100 |                                                                                                                                                                                                                                                                                                            
  codemirror.preferences.js             |    88.4 |    84.52 |   80.48 |   88.78 | 239,443-445,481,521-522,594,618-623,635-636,678-684,704-705                                                                                                                                                                                                                                                
  codemirror.search.js                  |   75.43 |    35.82 |   78.26 |   75.43 | 196-197,204-205,306-345,382-396,408-410                                                                                                                                                                                                                                                                    
  codemirror.textSelection.js           |   81.96 |    96.42 |   83.33 |   83.33 | 83-88,191-192,196-197,229-239                                                                                                                                                                                                                                                                              
  codemirror.visualEditor.js            |   62.31 |    25.71 |   81.25 |   63.23 | 224-230,243-325                                                                                                                                                                                                                                                                                            
  codemirror.wikieditor.js              |   69.04 |    68.42 |   53.33 |   70.73 | 63,75,82,101-110,192-194,280,301,304,317-337,370,419-437,451                                                                                                                                                                                                                                               
 resources/modes                        |    80.7 |       78 |   67.34 |   80.83 |                                                                                                                                                                                                                                                                                                            
  codemirror.bundle.modes.js            |       0 |        0 |       0 |       0 |                                                                                                                                                                                                                                                                                                            
  codemirror.css.js                     |   85.36 |    56.52 |      70 |      85 | 38-39,85,122-124                                                                                                                                                                                                                                                                                           
  codemirror.javascript.js              |   94.11 |      100 |    87.5 |   94.11 | 57                                                                                                                                                                                                                                                                                                         
  codemirror.json.js                    |       0 |      100 |       0 |       0 | 1-35                                                                                                                                                                                                                                                                                                       
  codemirror.lua.js                     |   88.09 |    82.25 |    87.5 |   88.88 | 339,350,352,357,369,379,439,448-449                                                                                                                                                                                                                                                                        
  codemirror.mode.exporter.js           |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                                            
  codemirror.mode.js                    |   72.72 |       50 |   57.14 |   72.72 | 59-68,95                                                                                                                                                                                                                                                                                                   
  codemirror.vue.js                     |       0 |      100 |       0 |       0 | 1-39                                                                                                                                                                                                                                                                                                       
 resources/modes/mediawiki              |   73.73 |    67.29 |   71.12 |   74.12 |                                                                                                                                                                                                                                                                                                            
  codemirror.mediawiki.autocomplete.js  |   51.26 |    43.05 |   42.85 |   51.35 | 49-72,89-120,135-140,157-158,188,195-199,272                                                                                                                                                                                                                                                               
  codemirror.mediawiki.bidiIsolation.js |     100 |    61.11 |     100 |     100 | 33,92-113                                                                                                                                                                                                                                                                                                  
  codemirror.mediawiki.codeFolding.js   |   52.02 |    48.54 |   41.37 |   52.43 | 136,147,152-161,187,193,204,234-235,249-253,272-281,308-319,331-350,374-431,450-466                                                                                                                                                                                                                        
  codemirror.mediawiki.config.js        |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                                            
  codemirror.mediawiki.js               |   88.12 |    84.55 |   96.03 |   88.04 | 262-266,288,308,341-346,394,433-435,441-444,478-480,490-493,496-497,505-508,513,518-521,545,553-556,559-560,586-604,702-703,724,735-740,758-759,823-828,931-932,971,1025-1027,1030-1032,1087,1111-1113,1142,1167,1194,1333,1363-1368,1380-1386,1443,1449,1500,1533,1553-1557,1593,1664,1692,1700-1701,1714 
  codemirror.mediawiki.keymap.js        |   78.94 |       70 |   72.22 |   78.94 | 211-212,228-247,312-331,383-388                                                                                                                                                                                                                                                                            
  codemirror.mediawiki.lint.js          |   55.73 |    33.33 |   47.36 |   55.35 | 25,142,162-186,192-198                                                                                                                                                                                                                                                                                     
  codemirror.mediawiki.matchTag.js      |   17.33 |        0 |    6.66 |   18.05 | 9-18,60-90,103-122,134-152,164-182                                                                                                                                                                                                                                                                         
  codemirror.mediawiki.openLinks.js     |   31.57 |    16.36 |      80 |   31.57 | 61-112                                                                                                                                                                                                                                                                                                     
----------------------------------------|---------|----------|---------|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

> check-built-assets
> { git status resources/lib/ | grep "nothing to commit, working tree clean"; } && { echo 'CHECKING BUILD SOURCES ARE COMMITTED' && npm run build && git status resources/lib/ | grep "nothing to commit, working tree clean" || { npm run node-debug; false; }; }

nothing to commit, working tree clean
CHECKING BUILD SOURCES ARE COMMITTED

> build
> rollup -c && npm run build:stylelint && npm run build:eslint && npm run build:luacheck && npm run build:wikilint


> build:stylelint
> esbuild resources/workers/css/worker.js --charset=utf8 --bundle --minify --target=es2017 --format=iife --outfile=resources/workers/css/worker.min.js


> build:eslint
> esbuild resources/workers/javascript/worker.js --charset=utf8 --bundle --minify --target=es2017 --format=iife --outfile=resources/workers/javascript/worker.min.js


> build:luacheck
> esbuild resources/workers/lua/worker.js --charset=utf8 --bundle --minify --target=es2017 --format=iife --outfile=resources/workers/lua/worker.min.js


> build:wikilint
> esbuild resources/workers/mediawiki/worker.js --charset=utf8 --bundle --minify --target=es2017 --format=iife --outfile=resources/workers/mediawiki/worker.min.js

nothing to commit, working tree clean

--- end ---
{"1109809": {"source": 1109809, "name": "glob", "dependency": "glob", "title": "glob CLI: Command injection via -c/--cmd executes matches with shell:true", "url": "https://github.com/advisories/GHSA-5j98-mcp5-4vw2", "severity": "high", "cwe": ["CWE-78"], "cvss": {"score": 7.5, "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"}, "range": ">=10.3.7 <=11.0.3"}}
$ package-lock-lint package-lock.json
--- stdout ---
Checking package-lock.json

--- end ---
[DNM] there are no updates
$ git add .
--- stdout ---

--- end ---
$ git commit -F /tmp/tmp9lzg1zlg
--- stdout ---
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

--- end ---
Source code is licensed under the AGPL.