This run took 27 seconds.
From eed460b2e3d9661ea1d1be1166d64a354c47d3f5 Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Sat, 15 Nov 2025 18:03:53 +0000
Subject: [PATCH] build: Updating js-yaml to 4.1.1
* https://github.com/advisories/GHSA-mh29-5h37-fv8m
Change-Id: Idecf024d40e3b9ceb27cc929bb79517193113c65
---
package-lock.json | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index e5dfb7c..22396b3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -846,9 +846,9 @@
"dev": true
},
"node_modules/js-yaml": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
- "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
+ "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
"dev": true,
"dependencies": {
"argparse": "^2.0.1"
@@ -1905,9 +1905,9 @@
}
},
"js-yaml": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
- "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
+ "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
"dev": true,
"requires": {
"argparse": "^2.0.1"
--
2.47.3
$ date
--- stdout ---
Sat Nov 15 18:03:34 UTC 2025
--- end ---
$ git clone file:///srv/git/wikipeg.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 ---
0b53246122318ccb77c839779ae3fbbea0ebc7be refs/heads/master
--- end ---
$ /usr/bin/npm audit --json
--- stdout ---
{
"auditReportVersion": 2,
"vulnerabilities": {
"jasmine-node": {
"name": "jasmine-node",
"severity": "critical",
"isDirect": true,
"via": [
"underscore"
],
"effects": [],
"range": ">=1.16.1",
"nodes": [
"node_modules/jasmine-node"
],
"fixAvailable": {
"name": "jasmine-node",
"version": "1.16.0",
"isSemVerMajor": true
}
},
"js-yaml": {
"name": "js-yaml",
"severity": "moderate",
"isDirect": false,
"via": [
{
"source": 1109754,
"name": "js-yaml",
"dependency": "js-yaml",
"title": "js-yaml has prototype pollution in merge (<<)",
"url": "https://github.com/advisories/GHSA-mh29-5h37-fv8m",
"severity": "moderate",
"cwe": [
"CWE-1321"
],
"cvss": {
"score": 5.3,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
},
"range": "<4.1.1"
}
],
"effects": [],
"range": "<4.1.1",
"nodes": [
"node_modules/js-yaml"
],
"fixAvailable": true
},
"underscore": {
"name": "underscore",
"severity": "critical",
"isDirect": false,
"via": [
{
"source": 1109570,
"name": "underscore",
"dependency": "underscore",
"title": "Arbitrary Code Execution in underscore",
"url": "https://github.com/advisories/GHSA-cf4h-3jhx-xvhq",
"severity": "critical",
"cwe": [
"CWE-94"
],
"cvss": {
"score": 9.8,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
"range": ">=1.3.2 <1.12.1"
}
],
"effects": [
"jasmine-node"
],
"range": "1.3.2 - 1.12.0",
"nodes": [
"node_modules/underscore"
],
"fixAvailable": {
"name": "jasmine-node",
"version": "1.16.0",
"isSemVerMajor": true
}
}
},
"metadata": {
"vulnerabilities": {
"info": 0,
"low": 0,
"moderate": 1,
"high": 0,
"critical": 2,
"total": 3
},
"dependencies": {
"prod": 1,
"dev": 112,
"optional": 0,
"peer": 0,
"peerOptional": 0,
"total": 112
}
}
}
--- 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: 66 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 myclabs/deep-copy (1.13.4)
- Locking netresearch/jsonmapper (v4.5.0)
- Locking nikic/php-parser (v5.6.2)
- Locking ockcyp/covers-validator (v1.7.0)
- Locking phan/phan (5.5.1)
- Locking phar-io/manifest (2.0.4)
- Locking phar-io/version (3.2.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 phpunit/php-code-coverage (10.1.16)
- Locking phpunit/php-file-iterator (4.1.0)
- Locking phpunit/php-invoker (4.0.0)
- Locking phpunit/php-text-template (3.0.1)
- Locking phpunit/php-timer (6.0.0)
- Locking phpunit/phpunit (10.5.58)
- Locking psr/container (2.0.2)
- Locking psr/log (3.0.2)
- Locking sabre/event (5.1.7)
- Locking sebastian/cli-parser (2.0.1)
- Locking sebastian/code-unit (2.0.0)
- Locking sebastian/code-unit-reverse-lookup (3.0.0)
- Locking sebastian/comparator (5.0.4)
- Locking sebastian/complexity (3.2.0)
- Locking sebastian/diff (5.1.1)
- Locking sebastian/environment (6.1.0)
- Locking sebastian/exporter (5.1.4)
- Locking sebastian/global-state (6.0.2)
- Locking sebastian/lines-of-code (2.0.2)
- Locking sebastian/object-enumerator (5.0.0)
- Locking sebastian/object-reflector (3.0.0)
- Locking sebastian/recursion-context (5.0.1)
- Locking sebastian/type (4.0.0)
- Locking sebastian/version (4.0.1)
- Locking squizlabs/php_codesniffer (3.13.2)
- Locking symfony/console (v6.4.27)
- 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 theseer/tokenizer (1.3.0)
- Locking tysonandre/var_representation_polyfill (0.1.3)
- Locking webmozart/assert (1.12.1)
- Locking wikimedia/update-history (1.0.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 66 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 (v6.4.27): 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 sebastian/version (4.0.1): Extracting archive
- Installing sebastian/type (4.0.0): Extracting archive
- Installing sebastian/recursion-context (5.0.1): Extracting archive
- Installing sebastian/object-reflector (3.0.0): Extracting archive
- Installing sebastian/object-enumerator (5.0.0): Extracting archive
- Installing sebastian/global-state (6.0.2): Extracting archive
- Installing sebastian/exporter (5.1.4): Extracting archive
- Installing sebastian/environment (6.1.0): Extracting archive
- Installing sebastian/diff (5.1.1): Extracting archive
- Installing sebastian/comparator (5.0.4): Extracting archive
- Installing sebastian/code-unit (2.0.0): Extracting archive
- Installing sebastian/cli-parser (2.0.1): Extracting archive
- Installing phpunit/php-timer (6.0.0): Extracting archive
- Installing phpunit/php-text-template (3.0.1): Extracting archive
- Installing phpunit/php-invoker (4.0.0): Extracting archive
- Installing phpunit/php-file-iterator (4.1.0): Extracting archive
- Installing theseer/tokenizer (1.3.0): Extracting archive
- Installing nikic/php-parser (v5.6.2): Extracting archive
- Installing sebastian/lines-of-code (2.0.2): Extracting archive
- Installing sebastian/complexity (3.2.0): Extracting archive
- Installing sebastian/code-unit-reverse-lookup (3.0.0): Extracting archive
- Installing phpunit/php-code-coverage (10.1.16): Extracting archive
- Installing phar-io/version (3.2.1): Extracting archive
- Installing phar-io/manifest (2.0.4): Extracting archive
- Installing myclabs/deep-copy (1.13.4): Extracting archive
- Installing phpunit/phpunit (10.5.58): Extracting archive
- Installing ockcyp/covers-validator (v1.7.0): 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
- Installing wikimedia/update-history (1.0.1): Extracting archive
0/64 [>---------------------------] 0%
28/64 [============>---------------] 43%
47/64 [====================>-------] 73%
63/64 [===========================>] 98%
64/64 [============================] 100%
3 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
41 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": {
"jasmine-node": {
"name": "jasmine-node",
"severity": "critical",
"isDirect": true,
"via": [
"underscore"
],
"effects": [],
"range": ">=1.16.1",
"nodes": [
"node_modules/jasmine-node"
],
"fixAvailable": {
"name": "jasmine-node",
"version": "1.16.0",
"isSemVerMajor": true
}
},
"js-yaml": {
"name": "js-yaml",
"severity": "moderate",
"isDirect": false,
"via": [
{
"source": 1109754,
"name": "js-yaml",
"dependency": "js-yaml",
"title": "js-yaml has prototype pollution in merge (<<)",
"url": "https://github.com/advisories/GHSA-mh29-5h37-fv8m",
"severity": "moderate",
"cwe": [
"CWE-1321"
],
"cvss": {
"score": 5.3,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
},
"range": "<4.1.1"
}
],
"effects": [],
"range": "<4.1.1",
"nodes": [
"node_modules/js-yaml"
],
"fixAvailable": true
},
"underscore": {
"name": "underscore",
"severity": "critical",
"isDirect": false,
"via": [
{
"source": 1109570,
"name": "underscore",
"dependency": "underscore",
"title": "Arbitrary Code Execution in underscore",
"url": "https://github.com/advisories/GHSA-cf4h-3jhx-xvhq",
"severity": "critical",
"cwe": [
"CWE-94"
],
"cvss": {
"score": 9.8,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
"range": ">=1.3.2 <1.12.1"
}
],
"effects": [
"jasmine-node"
],
"range": "1.3.2 - 1.12.0",
"nodes": [
"node_modules/underscore"
],
"fixAvailable": {
"name": "jasmine-node",
"version": "1.16.0",
"isSemVerMajor": true
}
}
},
"metadata": {
"vulnerabilities": {
"info": 0,
"low": 0,
"moderate": 1,
"high": 0,
"critical": 2,
"total": 3
},
"dependencies": {
"prod": 1,
"dev": 112,
"optional": 0,
"peer": 0,
"peerOptional": 0,
"total": 112
}
}
}
--- 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": 112,
"removed": 0,
"changed": 0,
"audited": 113,
"funding": 20,
"audit": {
"auditReportVersion": 2,
"vulnerabilities": {
"jasmine-node": {
"name": "jasmine-node",
"severity": "critical",
"isDirect": true,
"via": [
"underscore"
],
"effects": [],
"range": ">=1.16.1",
"nodes": [
"node_modules/jasmine-node"
],
"fixAvailable": {
"name": "jasmine-node",
"version": "1.16.0",
"isSemVerMajor": true
}
},
"js-yaml": {
"name": "js-yaml",
"severity": "moderate",
"isDirect": false,
"via": [
{
"source": 1109754,
"name": "js-yaml",
"dependency": "js-yaml",
"title": "js-yaml has prototype pollution in merge (<<)",
"url": "https://github.com/advisories/GHSA-mh29-5h37-fv8m",
"severity": "moderate",
"cwe": [
"CWE-1321"
],
"cvss": {
"score": 5.3,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
},
"range": "<4.1.1"
}
],
"effects": [],
"range": "<4.1.1",
"nodes": [
""
],
"fixAvailable": true
},
"underscore": {
"name": "underscore",
"severity": "critical",
"isDirect": false,
"via": [
{
"source": 1109570,
"name": "underscore",
"dependency": "underscore",
"title": "Arbitrary Code Execution in underscore",
"url": "https://github.com/advisories/GHSA-cf4h-3jhx-xvhq",
"severity": "critical",
"cwe": [
"CWE-94"
],
"cvss": {
"score": 9.8,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
"range": ">=1.3.2 <1.12.1"
}
],
"effects": [
"jasmine-node"
],
"range": "1.3.2 - 1.12.0",
"nodes": [
"node_modules/underscore"
],
"fixAvailable": {
"name": "jasmine-node",
"version": "1.16.0",
"isSemVerMajor": true
}
}
},
"metadata": {
"vulnerabilities": {
"info": 0,
"low": 0,
"moderate": 1,
"high": 0,
"critical": 2,
"total": 3
},
"dependencies": {
"prod": 1,
"dev": 112,
"optional": 0,
"peer": 0,
"peerOptional": 0,
"total": 112
}
}
}
}
--- end ---
{"added": 112, "removed": 0, "changed": 0, "audited": 113, "funding": 20, "audit": {"auditReportVersion": 2, "vulnerabilities": {"jasmine-node": {"name": "jasmine-node", "severity": "critical", "isDirect": true, "via": ["underscore"], "effects": [], "range": ">=1.16.1", "nodes": ["node_modules/jasmine-node"], "fixAvailable": {"name": "jasmine-node", "version": "1.16.0", "isSemVerMajor": true}}, "js-yaml": {"name": "js-yaml", "severity": "moderate", "isDirect": false, "via": [{"source": 1109754, "name": "js-yaml", "dependency": "js-yaml", "title": "js-yaml has prototype pollution in merge (<<)", "url": "https://github.com/advisories/GHSA-mh29-5h37-fv8m", "severity": "moderate", "cwe": ["CWE-1321"], "cvss": {"score": 5.3, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"}, "range": "<4.1.1"}], "effects": [], "range": "<4.1.1", "nodes": [""], "fixAvailable": true}, "underscore": {"name": "underscore", "severity": "critical", "isDirect": false, "via": [{"source": 1109570, "name": "underscore", "dependency": "underscore", "title": "Arbitrary Code Execution in underscore", "url": "https://github.com/advisories/GHSA-cf4h-3jhx-xvhq", "severity": "critical", "cwe": ["CWE-94"], "cvss": {"score": 9.8, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}, "range": ">=1.3.2 <1.12.1"}], "effects": ["jasmine-node"], "range": "1.3.2 - 1.12.0", "nodes": ["node_modules/underscore"], "fixAvailable": {"name": "jasmine-node", "version": "1.16.0", "isSemVerMajor": true}}}, "metadata": {"vulnerabilities": {"info": 0, "low": 0, "moderate": 1, "high": 0, "critical": 2, "total": 3}, "dependencies": {"prod": 1, "dev": 112, "optional": 0, "peer": 0, "peerOptional": 0, "total": 112}}}}
$ /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
--- stdout ---
added 112 packages, and audited 113 packages in 2s
20 packages are looking for funding
run `npm fund` for details
# npm audit report
underscore 1.3.2 - 1.12.0
Severity: critical
Arbitrary Code Execution in underscore - https://github.com/advisories/GHSA-cf4h-3jhx-xvhq
fix available via `npm audit fix --force`
Will install jasmine-node@1.16.0, which is a breaking change
node_modules/underscore
jasmine-node >=1.16.1
Depends on vulnerable versions of underscore
node_modules/jasmine-node
2 critical severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
--- end ---
Verifying that tests still pass
$ /usr/bin/npm ci
--- stdout ---
added 112 packages, and audited 113 packages in 1s
20 packages are looking for funding
run `npm fund` for details
2 critical severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
--- end ---
$ /usr/bin/npm test
--- stdout ---
> wikipeg@6.0.0-git test
> make eslint && make test
generated parser API - 19 ms
parse - 19 ms
parses input - 7 ms
throws an exception on syntax error - 3 ms
start rule - 1 ms
when |startRule| is not set - 1 ms
starts parsing from the first allowed rule - 1 ms
when |startRule| is set to an allowed rule - 0 ms
starts parsing from specified rule - 0 ms
when |startRule| is set to a disallowed start rule - 0 ms
throws an exception - 0 ms
tracing - 5 ms
default tracer - 3 ms
traces using console.log - 3 ms
custom tracers - 2 ms
trace - 2 ms
receives tracing events - 2 ms
accepts custom options - 3 ms
PEG.js API - 54 ms
buildParser - 54 ms
builds a parser - 2 ms
throws an exception on syntax error - 1 ms
throws an exception on semantic error - 0 ms
allowed start rules - 16 ms
when optimizing for parsing speed - 7 ms
when |allowedStartRules| is not set - 3 ms
generated parser can start only from the first rule - 3 ms
when |allowedStartRules| is set - 3 ms
generated parser can start only from specified rules - 3 ms
when optimizing for code size - 9 ms
when |allowedStartRules| is not set - 6 ms
generated parser can start only from the first rule - 6 ms
when |allowedStartRules| is set - 3 ms
generated parser can start only from specified rules - 3 ms
intermediate results caching - 16 ms
when |cache| is not set - 7 ms
generated parser doesn't cache intermediate parse results - 7 ms
when |cache| is set to |false| - 4 ms
generated parser doesn't cache intermediate parse results - 4 ms
when |cache| is set to |true| - 5 ms
generated parser caches intermediate parse results - 5 ms
tracing - 7 ms
when |trace| is not set - 2 ms
generated parser doesn't trace - 2 ms
when |trace| is set to |false| - 2 ms
generated parser doesn't trace - 2 ms
when |trace| is set to |true| - 3 ms
generated parser traces - 3 ms
output - 11 ms
when |output| is not set - 2 ms
returns generated parser object - 2 ms
when |output| is set to |"parser"| - 1 ms
returns generated parser object - 1 ms
when |output| is set to |"source"| - 3 ms
returns generated parser source code - 3 ms
when |headerComment| is set to |/*
* some comment
*/| - 3 ms
returns generated parser source code with that comment - 3 ms
when |headerComment| is set to |/*
* some comment
*/| and |language| is set to |php| - 2 ms
returns generated php parser source code with that comment - 2 ms
accepts custom options - 1 ms
plugin API - 14 ms
use - 14 ms
is called for each plugin - 2 ms
receives configuration - 3 ms
receives options - 1 ms
can replace parser - 5 ms
can change compiler passes - 1 ms
can change options - 2 ms
generated parser behavior - 368 ms
with options { cache : false } - 186 ms
initializer - 8 ms
executes the code before parsing starts - 3 ms
available variables and functions - 5 ms
|parser| contains the parser object - 3 ms
|options| contains options - 2 ms
rule - 14 ms
doesn't cache rule match results - 5 ms
when the expression matches - 2 ms
returns its match result - 2 ms
when the expression doesn't match - 7 ms
without display name - 2 ms
reports match failure and doesn't record any expectation - 2 ms
with display name - 5 ms
reports match failure and records an expectation of type "other" - 3 ms
discards any expectations recorded when matching the expression - 2 ms
non-start rule - 8 ms
when the expression doesn't match - 8 ms
without display name - 4 ms
reports match failure and records an expectation - 4 ms
with display name - 4 ms
silences any expectations recorded when matching the expression - 4 ms
positive semantic predicate - 35 ms
initializer variables & functions - 4 ms
can access variables defined in the initializer - 2 ms
can access functions defined in the initializer - 2 ms
available variables & functions - 31 ms
|parser| contains the parser object - 3 ms
|options| contains options - 2 ms
|location| returns current location info - 26 ms
negative semantic predicate - 22 ms
initializer variables & functions - 6 ms
can access variables defined in the initializer - 3 ms
can access functions defined in the initializer - 3 ms
available variables & functions - 16 ms
|parser| contains the parser object - 4 ms
|options| contains options - 3 ms
|location| returns current location info - 9 ms
action - 26 ms
initializer variables & functions - 5 ms
can access variables defined in the initializer - 3 ms
can access functions defined in the initializer - 2 ms
available variables & functions - 21 ms
|parser| contains the parser object - 3 ms
|options| contains options - 2 ms
|text| returns text matched by the expression - 3 ms
|location| returns location info of the expression - 7 ms
|expected| terminates parsing and throws an exception - 3 ms
|error| terminates parsing and throws an exception - 3 ms
error reporting - 28 ms
found string reporting - 4 ms
reports found string correctly at the end of input - 2 ms
reports found string correctly in the middle of input - 2 ms
message building - 12 ms
builds message correctly with no alternative - 2 ms
builds message correctly with one alternative - 2 ms
builds message correctly with multiple alternatives - 3 ms
builds message correctly at the end of input - 2 ms
builds message correctly in the middle of input - 2 ms
position reporting - 12 ms
reports position correctly at the end of input - 2 ms
reports position correctly in the middle of input - 2 ms
reports position correctly with trailing input - 2 ms
reports position correctly in complex cases - 6 ms
complex examples - 45 ms
handles arithmetics example correctly - 30 ms
handles non-context-free language correctly - 11 ms
handles nested comments example correctly - 4 ms
with options { cache : true } - 182 ms
initializer - 9 ms
executes the code before parsing starts - 4 ms
available variables and functions - 5 ms
|parser| contains the parser object - 3 ms
|options| contains options - 2 ms
rule - 12 ms
caches rule match results - 4 ms
when the expression matches - 2 ms
returns its match result - 2 ms
when the expression doesn't match - 6 ms
without display name - 2 ms
reports match failure and doesn't record any expectation - 2 ms
with display name - 4 ms
reports match failure and records an expectation of type "other" - 2 ms
discards any expectations recorded when matching the expression - 2 ms
non-start rule - 9 ms
when the expression doesn't match - 9 ms
without display name - 5 ms
reports match failure and records an expectation - 5 ms
with display name - 4 ms
silences any expectations recorded when matching the expression - 4 ms
positive semantic predicate - 19 ms
initializer variables & functions - 8 ms
can access variables defined in the initializer - 2 ms
can access functions defined in the initializer - 6 ms
available variables & functions - 11 ms
|parser| contains the parser object - 3 ms
|options| contains options - 2 ms
|location| returns current location info - 6 ms
negative semantic predicate - 15 ms
initializer variables & functions - 5 ms
can access variables defined in the initializer - 2 ms
can access functions defined in the initializer - 3 ms
available variables & functions - 10 ms
|parser| contains the parser object - 2 ms
|options| contains options - 3 ms
|location| returns current location info - 5 ms
action - 45 ms
initializer variables & functions - 6 ms
can access variables defined in the initializer - 4 ms
can access functions defined in the initializer - 2 ms
available variables & functions - 39 ms
|parser| contains the parser object - 3 ms
|options| contains options - 2 ms
|text| returns text matched by the expression - 2 ms
|location| returns location info of the expression - 22 ms
|expected| terminates parsing and throws an exception - 5 ms
|error| terminates parsing and throws an exception - 5 ms
error reporting - 31 ms
found string reporting - 8 ms
reports found string correctly at the end of input - 3 ms
reports found string correctly in the middle of input - 5 ms
message building - 12 ms
builds message correctly with no alternative - 2 ms
builds message correctly with one alternative - 3 ms
builds message correctly with multiple alternatives - 3 ms
builds message correctly at the end of input - 2 ms
builds message correctly in the middle of input - 2 ms
position reporting - 11 ms
reports position correctly at the end of input - 2 ms
reports position correctly in the middle of input - 2 ms
reports position correctly with trailing input - 2 ms
reports position correctly in complex cases - 5 ms
complex examples - 42 ms
handles arithmetics example correctly - 8 ms
handles non-context-free language correctly - 27 ms
handles nested comments example correctly - 7 ms
charsets.classNode - 8 ms
.any - 0 ms
has no parts - 0 ms
.isAny - 0 ms
matches .any() - 0 ms
doesn't match .empty() - 0 ms
.empty - 1 ms
has no parts - 1 ms
.isEmpty - 0 ms
doesn't match .any() - 0 ms
matches .empty() - 0 ms
.caseSensitive - 2 ms
handles simple ranges like [a-c] - 0 ms
handles ranges with mismatched case like [Y-b] - 1 ms
[k]i includes KELVIN SIGN - 0 ms
[s]i includes LATIN SMALL LETTER LONG S - 0 ms
[0-9a-f]i is still the normal thing - 1 ms
Non-ascii matching can be suppressed - 0 ms
.union - 2 ms
handles non-overlapping ranges - 0 ms
handles overlapping ranges - 1 ms
handles non-overlapping inverted ranges - 0 ms
handles overlapping inverted ranges - 0 ms
handles mixed inverted and uninverted ranges (1) - 0 ms
handles mixed inverted and uninverted ranges (2) - 1 ms
handles case-insensitive classes - 0 ms
.intersection - 1 ms
handles non-overlapping ranges - 0 ms
handles overlapping ranges - 0 ms
handles non-overlapping inverted ranges - 1 ms
handles overlapping inverted ranges - 0 ms
handles mixed inverted and uninverted ranges (1) - 0 ms
handles mixed inverted and uninverted ranges (2) - 0 ms
handles case-insensitive classes - 0 ms
.subtract - 1 ms
handles non-overlapping ranges - 1 ms
handles overlapping ranges - 0 ms
handles non-overlapping inverted ranges - 0 ms
handles overlapping inverted ranges - 0 ms
handles mixed inverted and uninverted ranges (1) - 0 ms
handles mixed inverted and uninverted ranges (2) - 0 ms
handles case-insensitive classes - 0 ms
.expand - 1 ms
handles small ranges - 1 ms
leaves large ranges alone - 0 ms
compiler pass |analyzeAlwaysMatch| - 4 ms
provides analysis results in |alwaysMatch| - 3 ms
is true for optional expressions - 1 ms
is true for zero-or-more expressions - 0 ms
is true for empty literals - 1 ms
is true for action nodes with empty literals - 0 ms
is true for a choice with an alwaysMatch clause - 1 ms
error reporting - 1 ms
reports an unreachable choice - 1 ms
compiler pass |analyzeFirst| - 3 ms
provides analysis results in |nullable| and |firstSet| - 2 ms
basic operation - 0 ms
merging overlapping ranges - 1 ms
case-insensitive ranges - 0 ms
inverted ranges - 0 ms
intersection of simple_and expressions - 1 ms
optimizes rule definitions - 1 ms
basic operation - 1 ms
optimizes rule references - 0 ms
basic operation - 0 ms
compiler pass |inlineSimpleRules| - 7 ms
when a simple rule isn't listed in |allowedStartRules| - 6 ms
updates references and removes it (class) - 4 ms
updates references and removes it (repeated class) - 0 ms
updates references and removes it (text repeated class) - 1 ms
should leave it alone if it has parameters - 1 ms
should leave it alone if it has [inline=false] - 0 ms
when a complex rule has [inline=true] - 1 ms
updates references and removes it - 1 ms
when a simple rule is listed in |allowedStartRules| - 0 ms
updates references but doesn't remove it - 0 ms
compiler pass |optimizeCharacterClass| - 3 ms
optimizes rules with choice of character classes - 2 ms
simple choice - 1 ms
nested choice - 0 ms
nested choice with inverted classes - 1 ms
optimizes rules with negated character classes - 1 ms
simple subtraction - 0 ms
repeated subtraction - 1 ms
eliminate unnecessary nodes if picked - 0 ms
compiler pass |optimizeFailureReporting| - 5 ms
provides analysis results in |reportsFailure| - 5 ms
is true for start rules - 1 ms
is false for rules only invoked via assertion - 0 ms
is true for rules invoked by a rule which reports failure (1) - 0 ms
is true for rules invoked by a rule which reports failure (2) - 1 ms
is false for rules invoked only by named rules - 3 ms
compiler pass |removeProxyRules| - 1 ms
when a proxy rule isn't listed in |allowedStartRules| - 1 ms
updates references and removes it - 1 ms
when a proxy rule is listed in |allowedStartRules| - 0 ms
updates references but doesn't remove it - 0 ms
compiler pass |reportLeftRecursion| - 5 ms
reports infinite loops for zero_or_more - 0 ms
reports infinite loops for one_or_more - 1 ms
computes empty string matching correctly - 4 ms
compiler pass |reportLeftRecursion| - 16 ms
reports direct left recursion - 0 ms
reports indirect left recursion - 0 ms
in sequences - 16 ms
reports left recursion if all preceding elements match empty string - 1 ms
doesn't report left recursion if some preceding element doesn't match empty string - 0 ms
computes empty string matching correctly - 15 ms
compiler pass |reportMissingRules| - 11 ms
reports missing rules - 11 ms
compiler pass |reportUnknownAttributes| - 3 ms
reports unknown attribute 'foo' as first attribute - 0 ms
reports unknown attribute 'foo' as last attribute - 1 ms
does not report known attribute 'name' - 0 ms
reports 'name' with non-string value - 0 ms
does not report known attribute 'inline' - 0 ms
reports 'inline' with non-boolean value - 1 ms
does not report known attribute 'cache' - 0 ms
reports 'cache' with non-boolean value - 0 ms
does not report known attribute 'empty' - 0 ms
reports 'empty' with non-boolean value - 1 ms
does not report known attribute 'unreachable' - 0 ms
reports 'unreachable' with non-boolean value - 0 ms
PEG.js grammar parser - 30 ms
parses Grammar - 1 ms
parses Initializer - 0 ms
parses Rule - 2 ms
parses Expression - 0 ms
parses ChoiceExpression - 1 ms
parses ActionExpression - 0 ms
parses SequenceExpression - 1 ms
parses LabeledExpression - 1 ms
parses PrefixedExpression - 0 ms
parses PrefixedOperator - 0 ms
parses SuffixedExpression - 1 ms
parses SuffixedOperator - 0 ms
parses PrimaryExpression - 1 ms
parses RuleReferenceExpression - 1 ms
parses SemanticPredicateExpression - 0 ms
parses SemanticPredicateOperator - 0 ms
parses WhiteSpace - 2 ms
parses LineTerminator - 0 ms
parses LineTerminatorSequence - 1 ms
parses Comment - 0 ms
parses MultiLineComment - 1 ms
parses MultiLineCommentNoLineTerminator - 1 ms
parses SingleLineComment - 1 ms
parses Identifier - 0 ms
parses IdentifierName - 0 ms
parses IdentifierStart - 1 ms
parses IdentifierPart - 1 ms
parses LiteralMatcher - 1 ms
parses StringLiteral - 0 ms
parses DoubleStringCharacter - 1 ms
parses SingleStringCharacter - 1 ms
parses CharacterClassMatcher - 1 ms
parses ClassCharacterRange - 1 ms
parses ClassCharacter - 0 ms
parses LineContinuation - 1 ms
parses EscapeSequence - 0 ms
parses CharacterEscapeSequence - 1 ms
parses SingleEscapeCharacter - 1 ms
parses NonEscapeCharacter - 0 ms
parses HexEscapeSequence - 0 ms
parses UnicodeEscapeSequence - 1 ms
parses AnyMatcher - 0 ms
parses CodeBlock - 0 ms
parses Code - 1 ms
parses __ - 0 ms
parses _ - 1 ms
parses EOS - 1 ms
parses EOF - 1 ms
Finished in 0.571 seconds
254 tests, 577 assertions, 0 failures, 0 skipped
Running language-independent tests against PHP
SUCCESS: 1110 / 1110 assertions were successful
node tests/javascript/runCommonTests.js
Running language-independent tests against JavaScript
SUCCESS: 1110 / 1110 assertions were successful
--- end ---
{"1109754": {"source": 1109754, "name": "js-yaml", "dependency": "js-yaml", "title": "js-yaml has prototype pollution in merge (<<)", "url": "https://github.com/advisories/GHSA-mh29-5h37-fv8m", "severity": "moderate", "cwe": ["CWE-1321"], "cvss": {"score": 5.3, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"}, "range": "<4.1.1"}}
Upgrading n:js-yaml from 4.1.0 -> 4.1.1
$ package-lock-lint package-lock.json
--- stdout ---
Checking package-lock.json
--- end ---
build: Updating js-yaml to 4.1.1
* https://github.com/advisories/GHSA-mh29-5h37-fv8m
$ git add .
--- stdout ---
--- end ---
$ git commit -F /tmp/tmpp8ohwqjr
--- stdout ---
[master eed460b] build: Updating js-yaml to 4.1.1
1 file changed, 6 insertions(+), 6 deletions(-)
--- end ---
$ git format-patch HEAD~1 --stdout
--- stdout ---
From eed460b2e3d9661ea1d1be1166d64a354c47d3f5 Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Sat, 15 Nov 2025 18:03:53 +0000
Subject: [PATCH] build: Updating js-yaml to 4.1.1
* https://github.com/advisories/GHSA-mh29-5h37-fv8m
Change-Id: Idecf024d40e3b9ceb27cc929bb79517193113c65
---
package-lock.json | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index e5dfb7c..22396b3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -846,9 +846,9 @@
"dev": true
},
"node_modules/js-yaml": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
- "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
+ "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
"dev": true,
"dependencies": {
"argparse": "^2.0.1"
@@ -1905,9 +1905,9 @@
}
},
"js-yaml": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
- "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
+ "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
"dev": true,
"requires": {
"argparse": "^2.0.1"
--
2.47.3
--- end ---