This run took 53 seconds.
$ date
--- stdout ---
Fri Apr 17 11:26:04 UTC 2026
--- end ---
$ git clone file:///srv/git/mediawiki-services-citoid.git /src/repo --depth=1 -b master
--- stderr ---
Cloning into '/src/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 ---
4489bf2ac6d214ed67f7514cc58752fb2a8e2a24 refs/heads/master
--- end ---
$ /usr/bin/npm audit --json
--- stdout ---
{
"auditReportVersion": 2,
"vulnerabilities": {
"diff": {
"name": "diff",
"severity": "low",
"isDirect": false,
"via": [
{
"source": 1112706,
"name": "diff",
"dependency": "diff",
"title": "jsdiff has a Denial of Service vulnerability in parsePatch and applyPatch",
"url": "https://github.com/advisories/GHSA-73rr-hh4g-fpgx",
"severity": "low",
"cwe": [
"CWE-400",
"CWE-1333"
],
"cvss": {
"score": 0,
"vectorString": null
},
"range": ">=6.0.0 <8.0.3"
}
],
"effects": [
"mocha"
],
"range": "6.0.0 - 8.0.2",
"nodes": [
"node_modules/diff"
],
"fixAvailable": {
"name": "mocha",
"version": "11.3.0",
"isSemVerMajor": true
}
},
"ip": {
"name": "ip",
"severity": "high",
"isDirect": true,
"via": [
{
"source": 1101851,
"name": "ip",
"dependency": "ip",
"title": "ip SSRF improper categorization in isPublic",
"url": "https://github.com/advisories/GHSA-2p57-rm9w-gvfp",
"severity": "high",
"cwe": [
"CWE-918"
],
"cvss": {
"score": 8.1,
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
"range": "<=2.0.1"
}
],
"effects": [],
"range": "*",
"nodes": [
"node_modules/ip"
],
"fixAvailable": false
},
"limitation": {
"name": "limitation",
"severity": "moderate",
"isDirect": false,
"via": [
"wikimedia-kad-fork"
],
"effects": [
"service-runner"
],
"range": ">=0.2.3",
"nodes": [
"node_modules/limitation"
],
"fixAvailable": {
"name": "service-runner",
"version": "2.9.0",
"isSemVerMajor": true
}
},
"mocha": {
"name": "mocha",
"severity": "high",
"isDirect": true,
"via": [
"diff",
"serialize-javascript"
],
"effects": [],
"range": "8.0.0 - 12.0.0-beta-3",
"nodes": [
"node_modules/mocha"
],
"fixAvailable": {
"name": "mocha",
"version": "11.3.0",
"isSemVerMajor": true
}
},
"ms": {
"name": "ms",
"severity": "moderate",
"isDirect": false,
"via": [
{
"source": 1109573,
"name": "ms",
"dependency": "ms",
"title": "Vercel ms Inefficient Regular Expression Complexity vulnerability",
"url": "https://github.com/advisories/GHSA-w9mr-4mfr-499f",
"severity": "moderate",
"cwe": [
"CWE-1333"
],
"cvss": {
"score": 5.3,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
},
"range": "<2.0.0"
}
],
"effects": [
"wikimedia-kad-fork"
],
"range": "<2.0.0",
"nodes": [
"node_modules/wikimedia-kad-fork/node_modules/ms"
],
"fixAvailable": {
"name": "service-runner",
"version": "2.9.0",
"isSemVerMajor": true
}
},
"serialize-javascript": {
"name": "serialize-javascript",
"severity": "high",
"isDirect": false,
"via": [
{
"source": 1113686,
"name": "serialize-javascript",
"dependency": "serialize-javascript",
"title": "Serialize JavaScript is Vulnerable to RCE via RegExp.flags and Date.prototype.toISOString()",
"url": "https://github.com/advisories/GHSA-5c6j-r48x-rmvq",
"severity": "high",
"cwe": [
"CWE-96"
],
"cvss": {
"score": 8.1,
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
"range": "<=7.0.2"
},
{
"source": 1115723,
"name": "serialize-javascript",
"dependency": "serialize-javascript",
"title": "Serialize JavaScript has CPU Exhaustion Denial of Service via crafted array-like objects",
"url": "https://github.com/advisories/GHSA-qj8w-gfj5-8c6v",
"severity": "moderate",
"cwe": [
"CWE-400",
"CWE-834"
],
"cvss": {
"score": 5.9,
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
},
"range": "<7.0.5"
}
],
"effects": [
"mocha"
],
"range": "<=7.0.4",
"nodes": [
"node_modules/serialize-javascript"
],
"fixAvailable": {
"name": "mocha",
"version": "11.3.0",
"isSemVerMajor": true
}
},
"service-runner": {
"name": "service-runner",
"severity": "high",
"isDirect": true,
"via": [
"limitation",
"tar"
],
"effects": [],
"range": ">=3.0.0",
"nodes": [
"node_modules/service-runner"
],
"fixAvailable": {
"name": "service-runner",
"version": "2.9.0",
"isSemVerMajor": true
}
},
"tar": {
"name": "tar",
"severity": "high",
"isDirect": false,
"via": [
{
"source": 1112659,
"name": "tar",
"dependency": "tar",
"title": "node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal",
"url": "https://github.com/advisories/GHSA-34x7-hfp2-rc4v",
"severity": "high",
"cwe": [
"CWE-22",
"CWE-59"
],
"cvss": {
"score": 8.2,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N"
},
"range": "<7.5.7"
},
{
"source": 1113300,
"name": "tar",
"dependency": "tar",
"title": "node-tar is Vulnerable to Arbitrary File Overwrite and Symlink Poisoning via Insufficient Path Sanitization",
"url": "https://github.com/advisories/GHSA-8qq5-rm4j-mr97",
"severity": "high",
"cwe": [
"CWE-22"
],
"cvss": {
"score": 0,
"vectorString": null
},
"range": "<=7.5.2"
},
{
"source": 1113375,
"name": "tar",
"dependency": "tar",
"title": "Arbitrary File Read/Write via Hardlink Target Escape Through Symlink Chain in node-tar Extraction",
"url": "https://github.com/advisories/GHSA-83g3-92jg-28cx",
"severity": "high",
"cwe": [
"CWE-22"
],
"cvss": {
"score": 7.1,
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"
},
"range": "<7.5.8"
},
{
"source": 1114200,
"name": "tar",
"dependency": "tar",
"title": "tar has Hardlink Path Traversal via Drive-Relative Linkpath",
"url": "https://github.com/advisories/GHSA-qffp-2rhf-9h96",
"severity": "high",
"cwe": [
"CWE-22",
"CWE-59"
],
"cvss": {
"score": 0,
"vectorString": null
},
"range": "<=7.5.9"
},
{
"source": 1114302,
"name": "tar",
"dependency": "tar",
"title": "node-tar Symlink Path Traversal via Drive-Relative Linkpath",
"url": "https://github.com/advisories/GHSA-9ppj-qmqm-q256",
"severity": "high",
"cwe": [
"CWE-22"
],
"cvss": {
"score": 0,
"vectorString": null
},
"range": "<=7.5.10"
},
{
"source": 1114680,
"name": "tar",
"dependency": "tar",
"title": "Race Condition in node-tar Path Reservations via Unicode Ligature Collisions on macOS APFS",
"url": "https://github.com/advisories/GHSA-r6q2-hw4h-h46w",
"severity": "high",
"cwe": [
"CWE-176",
"CWE-367"
],
"cvss": {
"score": 8.8,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L"
},
"range": "<=7.5.3"
}
],
"effects": [
"service-runner"
],
"range": "<=7.5.10",
"nodes": [
"node_modules/tar"
],
"fixAvailable": {
"name": "service-runner",
"version": "2.9.0",
"isSemVerMajor": true
}
},
"wikimedia-kad-fork": {
"name": "wikimedia-kad-fork",
"severity": "moderate",
"isDirect": false,
"via": [
"ms"
],
"effects": [
"limitation"
],
"range": "*",
"nodes": [
"node_modules/wikimedia-kad-fork"
],
"fixAvailable": {
"name": "service-runner",
"version": "2.9.0",
"isSemVerMajor": true
}
}
},
"metadata": {
"vulnerabilities": {
"info": 0,
"low": 1,
"moderate": 3,
"high": 5,
"critical": 0,
"total": 9
},
"dependencies": {
"prod": 229,
"dev": 456,
"optional": 15,
"peer": 1,
"peerOptional": 0,
"total": 698
}
}
}
--- end ---
$ /usr/bin/npm audit --json
--- stdout ---
{
"auditReportVersion": 2,
"vulnerabilities": {
"diff": {
"name": "diff",
"severity": "low",
"isDirect": false,
"via": [
{
"source": 1112706,
"name": "diff",
"dependency": "diff",
"title": "jsdiff has a Denial of Service vulnerability in parsePatch and applyPatch",
"url": "https://github.com/advisories/GHSA-73rr-hh4g-fpgx",
"severity": "low",
"cwe": [
"CWE-400",
"CWE-1333"
],
"cvss": {
"score": 0,
"vectorString": null
},
"range": ">=6.0.0 <8.0.3"
}
],
"effects": [
"mocha"
],
"range": "6.0.0 - 8.0.2",
"nodes": [
"node_modules/diff"
],
"fixAvailable": {
"name": "mocha",
"version": "11.3.0",
"isSemVerMajor": true
}
},
"ip": {
"name": "ip",
"severity": "high",
"isDirect": true,
"via": [
{
"source": 1101851,
"name": "ip",
"dependency": "ip",
"title": "ip SSRF improper categorization in isPublic",
"url": "https://github.com/advisories/GHSA-2p57-rm9w-gvfp",
"severity": "high",
"cwe": [
"CWE-918"
],
"cvss": {
"score": 8.1,
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
"range": "<=2.0.1"
}
],
"effects": [],
"range": "*",
"nodes": [
"node_modules/ip"
],
"fixAvailable": false
},
"limitation": {
"name": "limitation",
"severity": "moderate",
"isDirect": false,
"via": [
"wikimedia-kad-fork"
],
"effects": [
"service-runner"
],
"range": ">=0.2.3",
"nodes": [
"node_modules/limitation"
],
"fixAvailable": {
"name": "service-runner",
"version": "2.9.0",
"isSemVerMajor": true
}
},
"mocha": {
"name": "mocha",
"severity": "high",
"isDirect": true,
"via": [
"diff",
"serialize-javascript"
],
"effects": [],
"range": "8.0.0 - 12.0.0-beta-3",
"nodes": [
"node_modules/mocha"
],
"fixAvailable": {
"name": "mocha",
"version": "11.3.0",
"isSemVerMajor": true
}
},
"ms": {
"name": "ms",
"severity": "moderate",
"isDirect": false,
"via": [
{
"source": 1109573,
"name": "ms",
"dependency": "ms",
"title": "Vercel ms Inefficient Regular Expression Complexity vulnerability",
"url": "https://github.com/advisories/GHSA-w9mr-4mfr-499f",
"severity": "moderate",
"cwe": [
"CWE-1333"
],
"cvss": {
"score": 5.3,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
},
"range": "<2.0.0"
}
],
"effects": [
"wikimedia-kad-fork"
],
"range": "<2.0.0",
"nodes": [
"node_modules/wikimedia-kad-fork/node_modules/ms"
],
"fixAvailable": {
"name": "service-runner",
"version": "2.9.0",
"isSemVerMajor": true
}
},
"serialize-javascript": {
"name": "serialize-javascript",
"severity": "high",
"isDirect": false,
"via": [
{
"source": 1113686,
"name": "serialize-javascript",
"dependency": "serialize-javascript",
"title": "Serialize JavaScript is Vulnerable to RCE via RegExp.flags and Date.prototype.toISOString()",
"url": "https://github.com/advisories/GHSA-5c6j-r48x-rmvq",
"severity": "high",
"cwe": [
"CWE-96"
],
"cvss": {
"score": 8.1,
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
"range": "<=7.0.2"
},
{
"source": 1115723,
"name": "serialize-javascript",
"dependency": "serialize-javascript",
"title": "Serialize JavaScript has CPU Exhaustion Denial of Service via crafted array-like objects",
"url": "https://github.com/advisories/GHSA-qj8w-gfj5-8c6v",
"severity": "moderate",
"cwe": [
"CWE-400",
"CWE-834"
],
"cvss": {
"score": 5.9,
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
},
"range": "<7.0.5"
}
],
"effects": [
"mocha"
],
"range": "<=7.0.4",
"nodes": [
"node_modules/serialize-javascript"
],
"fixAvailable": {
"name": "mocha",
"version": "11.3.0",
"isSemVerMajor": true
}
},
"service-runner": {
"name": "service-runner",
"severity": "high",
"isDirect": true,
"via": [
"limitation",
"tar"
],
"effects": [],
"range": ">=3.0.0",
"nodes": [
"node_modules/service-runner"
],
"fixAvailable": {
"name": "service-runner",
"version": "2.9.0",
"isSemVerMajor": true
}
},
"tar": {
"name": "tar",
"severity": "high",
"isDirect": false,
"via": [
{
"source": 1112659,
"name": "tar",
"dependency": "tar",
"title": "node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal",
"url": "https://github.com/advisories/GHSA-34x7-hfp2-rc4v",
"severity": "high",
"cwe": [
"CWE-22",
"CWE-59"
],
"cvss": {
"score": 8.2,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N"
},
"range": "<7.5.7"
},
{
"source": 1113300,
"name": "tar",
"dependency": "tar",
"title": "node-tar is Vulnerable to Arbitrary File Overwrite and Symlink Poisoning via Insufficient Path Sanitization",
"url": "https://github.com/advisories/GHSA-8qq5-rm4j-mr97",
"severity": "high",
"cwe": [
"CWE-22"
],
"cvss": {
"score": 0,
"vectorString": null
},
"range": "<=7.5.2"
},
{
"source": 1113375,
"name": "tar",
"dependency": "tar",
"title": "Arbitrary File Read/Write via Hardlink Target Escape Through Symlink Chain in node-tar Extraction",
"url": "https://github.com/advisories/GHSA-83g3-92jg-28cx",
"severity": "high",
"cwe": [
"CWE-22"
],
"cvss": {
"score": 7.1,
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"
},
"range": "<7.5.8"
},
{
"source": 1114200,
"name": "tar",
"dependency": "tar",
"title": "tar has Hardlink Path Traversal via Drive-Relative Linkpath",
"url": "https://github.com/advisories/GHSA-qffp-2rhf-9h96",
"severity": "high",
"cwe": [
"CWE-22",
"CWE-59"
],
"cvss": {
"score": 0,
"vectorString": null
},
"range": "<=7.5.9"
},
{
"source": 1114302,
"name": "tar",
"dependency": "tar",
"title": "node-tar Symlink Path Traversal via Drive-Relative Linkpath",
"url": "https://github.com/advisories/GHSA-9ppj-qmqm-q256",
"severity": "high",
"cwe": [
"CWE-22"
],
"cvss": {
"score": 0,
"vectorString": null
},
"range": "<=7.5.10"
},
{
"source": 1114680,
"name": "tar",
"dependency": "tar",
"title": "Race Condition in node-tar Path Reservations via Unicode Ligature Collisions on macOS APFS",
"url": "https://github.com/advisories/GHSA-r6q2-hw4h-h46w",
"severity": "high",
"cwe": [
"CWE-176",
"CWE-367"
],
"cvss": {
"score": 8.8,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L"
},
"range": "<=7.5.3"
}
],
"effects": [
"service-runner"
],
"range": "<=7.5.10",
"nodes": [
"node_modules/tar"
],
"fixAvailable": {
"name": "service-runner",
"version": "2.9.0",
"isSemVerMajor": true
}
},
"wikimedia-kad-fork": {
"name": "wikimedia-kad-fork",
"severity": "moderate",
"isDirect": false,
"via": [
"ms"
],
"effects": [
"limitation"
],
"range": "*",
"nodes": [
"node_modules/wikimedia-kad-fork"
],
"fixAvailable": {
"name": "service-runner",
"version": "2.9.0",
"isSemVerMajor": true
}
}
},
"metadata": {
"vulnerabilities": {
"info": 0,
"low": 1,
"moderate": 3,
"high": 5,
"critical": 0,
"total": 9
},
"dependencies": {
"prod": 229,
"dev": 456,
"optional": 15,
"peer": 1,
"peerOptional": 0,
"total": 698
}
}
}
--- 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
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'citoid@3.0.0',
npm WARN EBADENGINE required: { node: '24' },
npm WARN EBADENGINE current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
--- stdout ---
{
"added": 698,
"removed": 0,
"changed": 0,
"audited": 699,
"funding": 149,
"audit": {
"auditReportVersion": 2,
"vulnerabilities": {
"diff": {
"name": "diff",
"severity": "low",
"isDirect": false,
"via": [
{
"source": 1112706,
"name": "diff",
"dependency": "diff",
"title": "jsdiff has a Denial of Service vulnerability in parsePatch and applyPatch",
"url": "https://github.com/advisories/GHSA-73rr-hh4g-fpgx",
"severity": "low",
"cwe": [
"CWE-400",
"CWE-1333"
],
"cvss": {
"score": 0,
"vectorString": null
},
"range": ">=6.0.0 <8.0.3"
}
],
"effects": [
"mocha"
],
"range": "6.0.0 - 8.0.2",
"nodes": [
"node_modules/diff"
],
"fixAvailable": {
"name": "mocha",
"version": "11.3.0",
"isSemVerMajor": true
}
},
"ip": {
"name": "ip",
"severity": "high",
"isDirect": true,
"via": [
{
"source": 1101851,
"name": "ip",
"dependency": "ip",
"title": "ip SSRF improper categorization in isPublic",
"url": "https://github.com/advisories/GHSA-2p57-rm9w-gvfp",
"severity": "high",
"cwe": [
"CWE-918"
],
"cvss": {
"score": 8.1,
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
"range": "<=2.0.1"
}
],
"effects": [],
"range": "*",
"nodes": [
"node_modules/ip"
],
"fixAvailable": false
},
"limitation": {
"name": "limitation",
"severity": "moderate",
"isDirect": false,
"via": [
"wikimedia-kad-fork"
],
"effects": [
"service-runner"
],
"range": ">=0.2.3",
"nodes": [
"node_modules/limitation"
],
"fixAvailable": {
"name": "service-runner",
"version": "2.9.0",
"isSemVerMajor": true
}
},
"mocha": {
"name": "mocha",
"severity": "high",
"isDirect": true,
"via": [
"diff",
"serialize-javascript"
],
"effects": [],
"range": "8.0.0 - 12.0.0-beta-3",
"nodes": [
"node_modules/mocha"
],
"fixAvailable": {
"name": "mocha",
"version": "11.3.0",
"isSemVerMajor": true
}
},
"ms": {
"name": "ms",
"severity": "moderate",
"isDirect": false,
"via": [
{
"source": 1109573,
"name": "ms",
"dependency": "ms",
"title": "Vercel ms Inefficient Regular Expression Complexity vulnerability",
"url": "https://github.com/advisories/GHSA-w9mr-4mfr-499f",
"severity": "moderate",
"cwe": [
"CWE-1333"
],
"cvss": {
"score": 5.3,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
},
"range": "<2.0.0"
}
],
"effects": [
"wikimedia-kad-fork"
],
"range": "<2.0.0",
"nodes": [
"node_modules/wikimedia-kad-fork/node_modules/ms"
],
"fixAvailable": {
"name": "service-runner",
"version": "2.9.0",
"isSemVerMajor": true
}
},
"serialize-javascript": {
"name": "serialize-javascript",
"severity": "high",
"isDirect": false,
"via": [
{
"source": 1113686,
"name": "serialize-javascript",
"dependency": "serialize-javascript",
"title": "Serialize JavaScript is Vulnerable to RCE via RegExp.flags and Date.prototype.toISOString()",
"url": "https://github.com/advisories/GHSA-5c6j-r48x-rmvq",
"severity": "high",
"cwe": [
"CWE-96"
],
"cvss": {
"score": 8.1,
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
"range": "<=7.0.2"
},
{
"source": 1115723,
"name": "serialize-javascript",
"dependency": "serialize-javascript",
"title": "Serialize JavaScript has CPU Exhaustion Denial of Service via crafted array-like objects",
"url": "https://github.com/advisories/GHSA-qj8w-gfj5-8c6v",
"severity": "moderate",
"cwe": [
"CWE-400",
"CWE-834"
],
"cvss": {
"score": 5.9,
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
},
"range": "<7.0.5"
}
],
"effects": [
"mocha"
],
"range": "<=7.0.4",
"nodes": [
"node_modules/serialize-javascript"
],
"fixAvailable": {
"name": "mocha",
"version": "11.3.0",
"isSemVerMajor": true
}
},
"service-runner": {
"name": "service-runner",
"severity": "high",
"isDirect": true,
"via": [
"limitation",
"tar"
],
"effects": [],
"range": ">=3.0.0",
"nodes": [
"node_modules/service-runner"
],
"fixAvailable": {
"name": "service-runner",
"version": "2.9.0",
"isSemVerMajor": true
}
},
"tar": {
"name": "tar",
"severity": "high",
"isDirect": false,
"via": [
{
"source": 1112659,
"name": "tar",
"dependency": "tar",
"title": "node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal",
"url": "https://github.com/advisories/GHSA-34x7-hfp2-rc4v",
"severity": "high",
"cwe": [
"CWE-22",
"CWE-59"
],
"cvss": {
"score": 8.2,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N"
},
"range": "<7.5.7"
},
{
"source": 1113300,
"name": "tar",
"dependency": "tar",
"title": "node-tar is Vulnerable to Arbitrary File Overwrite and Symlink Poisoning via Insufficient Path Sanitization",
"url": "https://github.com/advisories/GHSA-8qq5-rm4j-mr97",
"severity": "high",
"cwe": [
"CWE-22"
],
"cvss": {
"score": 0,
"vectorString": null
},
"range": "<=7.5.2"
},
{
"source": 1113375,
"name": "tar",
"dependency": "tar",
"title": "Arbitrary File Read/Write via Hardlink Target Escape Through Symlink Chain in node-tar Extraction",
"url": "https://github.com/advisories/GHSA-83g3-92jg-28cx",
"severity": "high",
"cwe": [
"CWE-22"
],
"cvss": {
"score": 7.1,
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"
},
"range": "<7.5.8"
},
{
"source": 1114200,
"name": "tar",
"dependency": "tar",
"title": "tar has Hardlink Path Traversal via Drive-Relative Linkpath",
"url": "https://github.com/advisories/GHSA-qffp-2rhf-9h96",
"severity": "high",
"cwe": [
"CWE-22",
"CWE-59"
],
"cvss": {
"score": 0,
"vectorString": null
},
"range": "<=7.5.9"
},
{
"source": 1114302,
"name": "tar",
"dependency": "tar",
"title": "node-tar Symlink Path Traversal via Drive-Relative Linkpath",
"url": "https://github.com/advisories/GHSA-9ppj-qmqm-q256",
"severity": "high",
"cwe": [
"CWE-22"
],
"cvss": {
"score": 0,
"vectorString": null
},
"range": "<=7.5.10"
},
{
"source": 1114680,
"name": "tar",
"dependency": "tar",
"title": "Race Condition in node-tar Path Reservations via Unicode Ligature Collisions on macOS APFS",
"url": "https://github.com/advisories/GHSA-r6q2-hw4h-h46w",
"severity": "high",
"cwe": [
"CWE-176",
"CWE-367"
],
"cvss": {
"score": 8.8,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L"
},
"range": "<=7.5.3"
}
],
"effects": [
"service-runner"
],
"range": "<=7.5.10",
"nodes": [
"node_modules/tar"
],
"fixAvailable": {
"name": "service-runner",
"version": "2.9.0",
"isSemVerMajor": true
}
},
"wikimedia-kad-fork": {
"name": "wikimedia-kad-fork",
"severity": "moderate",
"isDirect": false,
"via": [
"ms"
],
"effects": [
"limitation"
],
"range": "*",
"nodes": [
"node_modules/wikimedia-kad-fork"
],
"fixAvailable": {
"name": "service-runner",
"version": "2.9.0",
"isSemVerMajor": true
}
}
},
"metadata": {
"vulnerabilities": {
"info": 0,
"low": 1,
"moderate": 3,
"high": 5,
"critical": 0,
"total": 9
},
"dependencies": {
"prod": 229,
"dev": 456,
"optional": 15,
"peer": 1,
"peerOptional": 0,
"total": 698
}
}
}
}
--- end ---
{"added": 698, "removed": 0, "changed": 0, "audited": 699, "funding": 149, "audit": {"auditReportVersion": 2, "vulnerabilities": {"diff": {"name": "diff", "severity": "low", "isDirect": false, "via": [{"source": 1112706, "name": "diff", "dependency": "diff", "title": "jsdiff has a Denial of Service vulnerability in parsePatch and applyPatch", "url": "https://github.com/advisories/GHSA-73rr-hh4g-fpgx", "severity": "low", "cwe": ["CWE-400", "CWE-1333"], "cvss": {"score": 0, "vectorString": null}, "range": ">=6.0.0 <8.0.3"}], "effects": ["mocha"], "range": "6.0.0 - 8.0.2", "nodes": ["node_modules/diff"], "fixAvailable": {"name": "mocha", "version": "11.3.0", "isSemVerMajor": true}}, "ip": {"name": "ip", "severity": "high", "isDirect": true, "via": [{"source": 1101851, "name": "ip", "dependency": "ip", "title": "ip SSRF improper categorization in isPublic", "url": "https://github.com/advisories/GHSA-2p57-rm9w-gvfp", "severity": "high", "cwe": ["CWE-918"], "cvss": {"score": 8.1, "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}, "range": "<=2.0.1"}], "effects": [], "range": "*", "nodes": ["node_modules/ip"], "fixAvailable": false}, "limitation": {"name": "limitation", "severity": "moderate", "isDirect": false, "via": ["wikimedia-kad-fork"], "effects": ["service-runner"], "range": ">=0.2.3", "nodes": ["node_modules/limitation"], "fixAvailable": {"name": "service-runner", "version": "2.9.0", "isSemVerMajor": true}}, "mocha": {"name": "mocha", "severity": "high", "isDirect": true, "via": ["diff", "serialize-javascript"], "effects": [], "range": "8.0.0 - 12.0.0-beta-3", "nodes": ["node_modules/mocha"], "fixAvailable": {"name": "mocha", "version": "11.3.0", "isSemVerMajor": true}}, "ms": {"name": "ms", "severity": "moderate", "isDirect": false, "via": [{"source": 1109573, "name": "ms", "dependency": "ms", "title": "Vercel ms Inefficient Regular Expression Complexity vulnerability", "url": "https://github.com/advisories/GHSA-w9mr-4mfr-499f", "severity": "moderate", "cwe": ["CWE-1333"], "cvss": {"score": 5.3, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}, "range": "<2.0.0"}], "effects": ["wikimedia-kad-fork"], "range": "<2.0.0", "nodes": ["node_modules/wikimedia-kad-fork/node_modules/ms"], "fixAvailable": {"name": "service-runner", "version": "2.9.0", "isSemVerMajor": true}}, "serialize-javascript": {"name": "serialize-javascript", "severity": "high", "isDirect": false, "via": [{"source": 1113686, "name": "serialize-javascript", "dependency": "serialize-javascript", "title": "Serialize JavaScript is Vulnerable to RCE via RegExp.flags and Date.prototype.toISOString()", "url": "https://github.com/advisories/GHSA-5c6j-r48x-rmvq", "severity": "high", "cwe": ["CWE-96"], "cvss": {"score": 8.1, "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}, "range": "<=7.0.2"}, {"source": 1115723, "name": "serialize-javascript", "dependency": "serialize-javascript", "title": "Serialize JavaScript has CPU Exhaustion Denial of Service via crafted array-like objects", "url": "https://github.com/advisories/GHSA-qj8w-gfj5-8c6v", "severity": "moderate", "cwe": ["CWE-400", "CWE-834"], "cvss": {"score": 5.9, "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"}, "range": "<7.0.5"}], "effects": ["mocha"], "range": "<=7.0.4", "nodes": ["node_modules/serialize-javascript"], "fixAvailable": {"name": "mocha", "version": "11.3.0", "isSemVerMajor": true}}, "service-runner": {"name": "service-runner", "severity": "high", "isDirect": true, "via": ["limitation", "tar"], "effects": [], "range": ">=3.0.0", "nodes": ["node_modules/service-runner"], "fixAvailable": {"name": "service-runner", "version": "2.9.0", "isSemVerMajor": true}}, "tar": {"name": "tar", "severity": "high", "isDirect": false, "via": [{"source": 1112659, "name": "tar", "dependency": "tar", "title": "node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal", "url": "https://github.com/advisories/GHSA-34x7-hfp2-rc4v", "severity": "high", "cwe": ["CWE-22", "CWE-59"], "cvss": {"score": 8.2, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N"}, "range": "<7.5.7"}, {"source": 1113300, "name": "tar", "dependency": "tar", "title": "node-tar is Vulnerable to Arbitrary File Overwrite and Symlink Poisoning via Insufficient Path Sanitization", "url": "https://github.com/advisories/GHSA-8qq5-rm4j-mr97", "severity": "high", "cwe": ["CWE-22"], "cvss": {"score": 0, "vectorString": null}, "range": "<=7.5.2"}, {"source": 1113375, "name": "tar", "dependency": "tar", "title": "Arbitrary File Read/Write via Hardlink Target Escape Through Symlink Chain in node-tar Extraction", "url": "https://github.com/advisories/GHSA-83g3-92jg-28cx", "severity": "high", "cwe": ["CWE-22"], "cvss": {"score": 7.1, "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"}, "range": "<7.5.8"}, {"source": 1114200, "name": "tar", "dependency": "tar", "title": "tar has Hardlink Path Traversal via Drive-Relative Linkpath", "url": "https://github.com/advisories/GHSA-qffp-2rhf-9h96", "severity": "high", "cwe": ["CWE-22", "CWE-59"], "cvss": {"score": 0, "vectorString": null}, "range": "<=7.5.9"}, {"source": 1114302, "name": "tar", "dependency": "tar", "title": "node-tar Symlink Path Traversal via Drive-Relative Linkpath", "url": "https://github.com/advisories/GHSA-9ppj-qmqm-q256", "severity": "high", "cwe": ["CWE-22"], "cvss": {"score": 0, "vectorString": null}, "range": "<=7.5.10"}, {"source": 1114680, "name": "tar", "dependency": "tar", "title": "Race Condition in node-tar Path Reservations via Unicode Ligature Collisions on macOS APFS", "url": "https://github.com/advisories/GHSA-r6q2-hw4h-h46w", "severity": "high", "cwe": ["CWE-176", "CWE-367"], "cvss": {"score": 8.8, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L"}, "range": "<=7.5.3"}], "effects": ["service-runner"], "range": "<=7.5.10", "nodes": ["node_modules/tar"], "fixAvailable": {"name": "service-runner", "version": "2.9.0", "isSemVerMajor": true}}, "wikimedia-kad-fork": {"name": "wikimedia-kad-fork", "severity": "moderate", "isDirect": false, "via": ["ms"], "effects": ["limitation"], "range": "*", "nodes": ["node_modules/wikimedia-kad-fork"], "fixAvailable": {"name": "service-runner", "version": "2.9.0", "isSemVerMajor": true}}}, "metadata": {"vulnerabilities": {"info": 0, "low": 1, "moderate": 3, "high": 5, "critical": 0, "total": 9}, "dependencies": {"prod": 229, "dev": 456, "optional": 15, "peer": 1, "peerOptional": 0, "total": 698}}}}
$ /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 EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'citoid@3.0.0',
npm WARN EBADENGINE required: { node: '24' },
npm WARN EBADENGINE current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN deprecated kad-fs@0.0.4: This package is no longer maintained.
npm WARN deprecated whatwg-encoding@3.1.1: Use @exodus/bytes instead for a more spec-conformant and faster implementation
npm WARN deprecated kad-memstore@0.0.1: This package is no longer maintained.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
--- stdout ---
added 694 packages, and audited 695 packages in 10s
149 packages are looking for funding
run `npm fund` for details
# npm audit report
diff 6.0.0 - 8.0.2
jsdiff has a Denial of Service vulnerability in parsePatch and applyPatch - https://github.com/advisories/GHSA-73rr-hh4g-fpgx
fix available via `npm audit fix --force`
Will install mocha@11.3.0, which is a breaking change
node_modules/diff
mocha 8.0.0 - 12.0.0-beta-3
Depends on vulnerable versions of diff
Depends on vulnerable versions of serialize-javascript
node_modules/mocha
ip *
Severity: high
ip SSRF improper categorization in isPublic - https://github.com/advisories/GHSA-2p57-rm9w-gvfp
No fix available
node_modules/ip
ms <2.0.0
Severity: moderate
Vercel ms Inefficient Regular Expression Complexity vulnerability - https://github.com/advisories/GHSA-w9mr-4mfr-499f
fix available via `npm audit fix --force`
Will install service-runner@2.9.0, which is a breaking change
node_modules/wikimedia-kad-fork/node_modules/ms
wikimedia-kad-fork *
Depends on vulnerable versions of ms
node_modules/wikimedia-kad-fork
limitation >=0.2.3
Depends on vulnerable versions of wikimedia-kad-fork
node_modules/limitation
service-runner >=3.0.0
Depends on vulnerable versions of limitation
Depends on vulnerable versions of tar
node_modules/service-runner
serialize-javascript <=7.0.4
Severity: high
Serialize JavaScript is Vulnerable to RCE via RegExp.flags and Date.prototype.toISOString() - https://github.com/advisories/GHSA-5c6j-r48x-rmvq
Serialize JavaScript has CPU Exhaustion Denial of Service via crafted array-like objects - https://github.com/advisories/GHSA-qj8w-gfj5-8c6v
fix available via `npm audit fix --force`
Will install mocha@11.3.0, which is a breaking change
node_modules/serialize-javascript
tar <=7.5.10
Severity: high
node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal - https://github.com/advisories/GHSA-34x7-hfp2-rc4v
node-tar is Vulnerable to Arbitrary File Overwrite and Symlink Poisoning via Insufficient Path Sanitization - https://github.com/advisories/GHSA-8qq5-rm4j-mr97
Arbitrary File Read/Write via Hardlink Target Escape Through Symlink Chain in node-tar Extraction - https://github.com/advisories/GHSA-83g3-92jg-28cx
tar has Hardlink Path Traversal via Drive-Relative Linkpath - https://github.com/advisories/GHSA-qffp-2rhf-9h96
node-tar Symlink Path Traversal via Drive-Relative Linkpath - https://github.com/advisories/GHSA-9ppj-qmqm-q256
Race Condition in node-tar Path Reservations via Unicode Ligature Collisions on macOS APFS - https://github.com/advisories/GHSA-r6q2-hw4h-h46w
fix available via `npm audit fix --force`
Will install service-runner@2.9.0, which is a breaking change
node_modules/tar
9 vulnerabilities (1 low, 3 moderate, 5 high)
To address all issues possible (including breaking changes), run:
npm audit fix --force
Some issues need review, and may require choosing
a different dependency.
--- end ---
Verifying that tests still pass
$ /usr/bin/npm ci
--- stderr ---
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'citoid@3.0.0',
npm WARN EBADENGINE required: { node: '24' },
npm WARN EBADENGINE current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN deprecated kad-fs@0.0.4: This package is no longer maintained.
npm WARN deprecated whatwg-encoding@3.1.1: Use @exodus/bytes instead for a more spec-conformant and faster implementation
npm WARN deprecated kad-memstore@0.0.1: This package is no longer maintained.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
--- stdout ---
added 694 packages, and audited 695 packages in 10s
149 packages are looking for funding
run `npm fund` for details
9 vulnerabilities (1 low, 3 moderate, 5 high)
To address all issues possible (including breaking changes), run:
npm audit fix --force
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
--- end ---
$ /usr/bin/npm test
--- stderr ---
[baseline-browser-mapping] The data in this module is over two months old. To ensure accurate Baseline data, please update: `npm i baseline-browser-mapping@latest -D`
--- stdout ---
> citoid@3.0.0 test
> npm run lint && mocha ./test/features/unit/* && mocha ./test/features/errors/* && mocha ./test/features/app/* && mocha --exit ./test/features/scraping/*
> citoid@3.0.0 lint
> eslint --max-warnings 0 --cache .
cachedTypes
zotero methods
✔ returns false if no base types exist
✔ gets base types - no creators
✔ gets base types - with creators
creator types methods
✔ gets creator type ids
✔ returns empty list if no create type ids exist
✔ gets primary creator id from type
✔ gets creator name from id
✔ gets primary creator id from name
✔ determines if creatorType valid for type- true
✔ determines if creatorType valid for type- false
item fields methods
✔ determines if id is valid for type- false
✔ determines if id is valid for type- true
✔ determines if creator field is valid for type- true
✔ determines if creator field is valid for type- false
✔ get field id from type and base
✔ get base id from type and field
✔ get item type fields
✔ gets field name from id
✔ gets id from field name
lib/Citation.js
Constructor:
✔ creates citation with initial ID
✔ creates citation with numeric id
✔ throws error for non-string idType
✔ throws error for invalid idType
✔ ignores idValue and creates empty citation when idType is null
Setters:
✔ converts number to string
✔ keeps string values as strings
✔ handles empty string
Special values
✔ keeps null as null
✔ changes undefined to null
✔ converts true to empty string
✔ converts false to null
lib/Exporter.js functions:
validation functions:
fixURL:
✔ discards url with no host
✔ adds protocol to url when missing
fixWebsiteTitle:
✔ Adds missing website title
✔ Does not add missing website title if itemType is missing
✔ Does not add missing website title if url is relative
addIDSToCitation:
✔ cleans script and html out of title
stripCitation:
✔ cleans script and html out of title
✔ does not clean doi
fixDate:
✔ Contains copyright symbol
✔ Is in brackets for some unfathomable reason
✔ Contains copyright symbol & whitespace
✔ Contains c symbol
✔ sets year only date to year only date
✔ converts American style date to ISO
✔ Unable to parse so leaves as written; season (249ms)
✔ Chooses worldcat publication year
✔ Multilingual date - Spanish - leaves as written
✔ Multilingual date - Russian - leaves as written (41ms)
✔ Normal date
✔ Normal date with ordinal indicator
✔ Correctly sets normal date with ordinal number
✔ Date on the fence: ISO with - notation
✔ Date on the fence; ISO with + notation
✔ Date on the fence; toString output
✔ Date on the fence; ISO with Z notation
✔ Year first date
✔ Partial ISO date no preceeding 0
✔ Full ISO date no preceeding 0
✔ Full ISO date no preceeding 0 month or day
✔ Slashes full date
✔ Slashes partial date
✔ Slashes partial date with 0 month
- Slashes partial date with 00s
✔ Slashes partial year with 00s
✔ XX partial date
✔ XX partial year
✔ unix timestamp
✔ unix timestamp with space
fixDOI:
✔ Correctly gets DOI from full citation
✔ Correctly removes DOI that is not a DOI
✔ Correctly gets DOI when only DOI is present
fixISBN:
✔ Correctly hyphenates single ISBN-10
✔ Correctly handles ISBN-13s that have spaces in them
✔ Correctly extracts two ISBN-10s
✔ Correctly extracts ISBN-13
✔ Correctly extracts ISBN-10 and ISBN-13
✔ Correctly handles and normalizes hyphenated ISBN
✔ Correctly handles ISBNs with and without hyphens
✔ Correctly handles multiple ISBN-13s that have spaces in them
✔ Correctly handles out comma separated ISBNs
fixISSN:
✔ Correctly ignores None ISSN
✔ Correctly adds valid ISSN
✔ Correctly adds valid ISSN with spaces
✔ Correctly adds valid ISSN with X
✔ Correctly adds valid ISSN with x
✔ Correctly ignores invalid ISSN without hyphen
✔ Correctly ignores invalid ISSN
validateISSN:
✔ Correctly ignores None ISSN
✔ Correctly adds valid ISSN
✔ Correctly adds valid ISSN with spaces
✔ Correctly adds valid ISSN with X
✔ Correctly adds valid ISSN with x
✔ Correctly ignores invalid ISSN without hyphen
✔ Correctly ignores invalid ISSN
fixPages:
✔ converts hyphen minus to en dash
replaceCreators:
✔ Correctly adds name with firstName and lastName present
✔ Correctly adds names with only lastName or firstName present
✔ Adds names with name field
✔ Doesn't add names with incorrect field name
export formats:
wikibase:
different search term types
✔ url from search, doi from result
✔ doi from search, no url
✔ qid, no url
✔ pmid, no url
✔ pmcid, no url
different item types
✔ itemType webpage
✔ itemType book
✔ itemType journalArticle
lib/util.js issueRequest
preq compatibility
✔ rejects without URI
✔ should get content
✔ should wrap 404 in HTTPError
✔ should support query string (qs)
✔ should support simple string URI
✔ should follow redirects
✔ should not follow redirects when followRedirect is false
✔ should support url property as alias for uri
response body encoding
JSON parsing
✔ parses valid JSON correctly
✔ returns HTML as string when content-type claims application/json
✔ returns malformed JSON as string instead of throwing SyntaxError
✔ handles HTML error page with JSON content-type on 500 status
charset handling
✔ handles application/json with charset parameter
✔ decodes non-UTF-8 charset correctly
encoding: null (raw buffer)
✔ returns raw Buffer when encoding is null
✔ handles error responses with encoding: null
cookie jar handling
✔ sends cookies from jar in request
✔ stores Set-Cookie headers in jar
✔ maintains cookies across multiple requests
✔ works without jar (no errors)
lib/Scraper.js functions:
matchIDs function:
✔ gets doi from bePress string
✔ gets doi from bePress Array
✔ gets doi from highwirePress string
✔ gets doi from highwirePress Array
✔ gets doi from dublinCore string
✔ gets doi from dublinCore Array
✔ Returns empty metadata from empty object
✔ Multiple metadata types
parsing
✔ should scrape meta tag charset content
Tests for Translator.js :
translate function on html:
✔ translates bePress metadata from movie file
✔ translates bePress metadata from article file
✔ translates bePress metadata from song file
✔ translates highwirePress metadata from movie file
✔ translates highwirePress metadata from article file
✔ translates highwirePress metadata from song file
✔ translates coins metadata from movie file
✔ translates coins metadata from article file
✔ translates coins metadata from song file
✔ translates dublinCore metadata from movie file
✔ translates dublinCore metadata from article file
✔ translates dublinCore metadata from song file
✔ translates general metadata from movie file
✔ translates general metadata from article file
✔ translates general metadata from song file
✔ translates openGraph metadata from movie file
✔ translates openGraph metadata from article file
✔ translates openGraph metadata from song file
translate function on json:
✔ sets right info from journal-article crossRef metadata
✔ sets right info from book-section crossRef metadata
✔ tests every itemType for crossRef translator on every sample crossRef file
addItemType function:
✔ sets videoRecording itemType
✔ sets article itemType
✔ sets audioRecording itemType from openGraph
✔ sets itemType webpage if no relevant metadata available
check specific results:
✔ sets right info from webpage for general metadata
✔ sets right info from webpage for bepress metadata
coins metadata
✔ Correctly adds pages from spage and epage
✔ Correctly fixes en dash in pages fields
✔ Correctly adds date
exports.other.addCreators function
✔ Doesn't add empty creators field
✔ Doesn't add creators field if missing itemType
- Doesn't add duplicate author names
- Doesn't add duplicate author names with nbsp present
✔ Correctly adds name with missing firstname
✔ Correctly adds name with missing lastname
✔ Correctly uses aulast, auinit1 and auinitm
✔ Correctly uses auinit1 and auinitm
✔ Correctly adds corporation names
✔ Does split names in au field
crossRef translator unit
✔ Creator translate function adds lists of strings
dateParts function
✔ Translates full date
✔ Translates year and day
✔ Translates year only
✔ Fails with object
✔ Fails with list not nested
✔ Works with strings date
- Does not work with unexpected input
dublinCore translator unit
✔ Creator translate function adds lists of strings
✔ Correctly adds an author string with one word
✔ Correctly adds an author string with two words
✔ Correctly adds an author string with three words
general translator unit
✔ Author function adds lists of strings
✔ Correctly adds an author string with one word
✔ Correctly adds an author string with two words
✔ Correctly adds an author string with three words
✔ Does not try to split Harry Potter author field from worldcat
translator utilities:
makeTranslator function:
✔ strips leading and trailing whitespace
✔ replaces nonbreaking space characters with spaces
✔ correctly adds date with fixDate validate function
✔ correctly uses fixLang validate function
✔ removes line feed characters from title field
✔ preserves line feed characters in abstractNote field
✔ removes line feed characters from other fields
makePagesTranslator function:
✔ Uses spage and epage
✔ Uses optional pages arg and converts - to en dash
makeListTranslator function:
✔ Correctly adds one isbn
✔ Correctly uses isbn validate function
✔ Correctly uses issn validate function
✔ Correctly adds two issn and one eissn
✔ Correctly adds two isbn
makeCreatorsTranslator function:
✔ Name as written
✔ Has multiple authors in the field
✔ Format Last name, first name
✔ Adds two different contributor types
lib/unshorten.js
debug/unshorten Unshortening: http://www.example.com
debug/unshorten Already unshortened to: http://www.example.com
✔ Returns successful Promise if already unshortened
209 passing (765ms)
4 pending
address restrictions
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":50,"levelPath":"error/metrics","msg":"No such metrics client: 'undefined'","time":"2026-04-17T11:26:42.864Z","v":0}
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"levelPath":"warn/hostIsAllowed","request_id":"4fefb420-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/http%3A%2F%2Flocalhost%3A1970","headers":{"user-agent":"node","x-request-id":"4fefb420-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34892},"msg":"http://localhost:1970 is not public, and is disallowed","time":"2026-04-17T11:26:43.813Z","v":0}
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"msg":"requestFromURL failed for http://localhost:1970","outgoingReqResult":{"error":"AddressError"},"request_id":"4fefb420-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/http%3A%2F%2Flocalhost%3A1970","headers":{"user-agent":"node","x-request-id":"4fefb420-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34892},"levelPath":"warn/CitoidService","time":"2026-04-17T11:26:43.816Z","v":0}
✔ http://localhost:1970 (62ms)
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"levelPath":"warn/hostIsAllowed","request_id":"4ff46f10-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/http%3A%2F%2F127.0.0.1%3A1970","headers":{"user-agent":"node","x-request-id":"4ff46f10-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34892},"msg":"http://127.0.0.1:1970 is not public, and is disallowed","time":"2026-04-17T11:26:43.842Z","v":0}
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"msg":"requestFromURL failed for http://127.0.0.1:1970","outgoingReqResult":{"error":"AddressError"},"request_id":"4ff46f10-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/http%3A%2F%2F127.0.0.1%3A1970","headers":{"user-agent":"node","x-request-id":"4ff46f10-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34892},"levelPath":"warn/CitoidService","time":"2026-04-17T11:26:43.843Z","v":0}
✔ http://127.0.0.1:1970
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"msg":"requestFromURL failed for http://foobarbaz.example.com/","outgoingReqResult":{"error":"AddressError"},"request_id":"4ff5f5b0-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/http%3A%2F%2Ffoobarbaz.example.com%2F","headers":{"user-agent":"node","x-request-id":"4ff5f5b0-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34888},"levelPath":"warn/CitoidService","time":"2026-04-17T11:26:43.866Z","v":0}
✔ non-existing
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"levelPath":"warn/hostIsAllowed","request_id":"4ff8dbe0-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/http%3A%2F%2F10.0.0.5%2F","headers":{"user-agent":"node","x-request-id":"4ff8dbe0-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34888},"msg":"http://10.0.0.5/ is not public, and is disallowed","time":"2026-04-17T11:26:43.871Z","v":0}
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"msg":"requestFromURL failed for http://10.0.0.5/","outgoingReqResult":{"error":"AddressError"},"request_id":"4ff8dbe0-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/http%3A%2F%2F10.0.0.5%2F","headers":{"user-agent":"node","x-request-id":"4ff8dbe0-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34888},"levelPath":"warn/CitoidService","time":"2026-04-17T11:26:43.872Z","v":0}
✔ 10.0.0.5
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"levelPath":"warn/hostIsAllowed","request_id":"4ff9ed50-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/http%3A%2F%2F192.168.1.2","headers":{"user-agent":"node","x-request-id":"4ff9ed50-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34888},"msg":"http://192.168.1.2 is not public, and is disallowed","time":"2026-04-17T11:26:43.877Z","v":0}
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"msg":"requestFromURL failed for http://192.168.1.2","outgoingReqResult":{"error":"AddressError"},"request_id":"4ff9ed50-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/http%3A%2F%2F192.168.1.2","headers":{"user-agent":"node","x-request-id":"4ff9ed50-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34888},"levelPath":"warn/CitoidService","time":"2026-04-17T11:26:43.878Z","v":0}
✔ private ip
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"levelPath":"warn/zotero","request_id":"4ffa8990-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/https%3A%2F%2Fen.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DInternet_Assigned_Numbers_Authority%26oldid%3D664999436","headers":{"user-agent":"node","x-request-id":"4ffa8990-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34888},"msg":"No Zot response available for https://en.wikipedia.org/w/index.php?title=Internet_Assigned_Numbers_Authority&oldid=664999436","time":"2026-04-17T11:26:43.993Z","v":0}
✔ acceptable domain, with scheme (354ms)
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"levelPath":"warn/zotero","request_id":"5030dbd0-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/en.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DInternet_Assigned_Numbers_Authority%26oldid%3D664999436","headers":{"user-agent":"node","x-request-id":"5030dbd0-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34888},"msg":"No Zot response available for https://en.wikipedia.org/w/index.php?title=Internet_Assigned_Numbers_Authority&oldid=664999436","time":"2026-04-17T11:26:44.250Z","v":0}
✔ acceptable domain, without scheme (191ms)
encoding
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":50,"levelPath":"error/metrics","msg":"No such metrics client: 'undefined'","time":"2026-04-17T11:26:44.431Z","v":0}
✔ javascript in format
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"levelPath":"warn/pubmed","request_id":"50513510-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/10.1000%2Ff%3Cscript%3Ealert(1)%3B%3C%2Fscript%3E","headers":{"user-agent":"node","x-request-id":"50513510-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34898},"msg":"Unknown pubmed error","time":"2026-04-17T11:26:44.485Z","v":0}
✔ javascript in doi (353ms)
✔ json in format
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"msg":"requestFromURL failed for http://www.example.com/spaces%20in%20url","outgoingReqResult":{"status":404,"error":"HTTPError","hostname":"www.example.com","uri":"http://www.example.com/spaces%20in%20url"},"request_id":"508898c0-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/http%3A%2F%2Fwww.example.com%2Fspaces%20in%20url","headers":{"user-agent":"node","x-request-id":"508898c0-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34898},"levelPath":"warn/CitoidService","time":"2026-04-17T11:26:44.881Z","v":0}
✔ spaces in fully qualified url (76ms)
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"msg":"requestFromURL failed for http://www.example.com/spaces%20in%20url","outgoingReqResult":{"status":404,"error":"HTTPError","hostname":"www.example.com","uri":"http://www.example.com/spaces%20in%20url"},"request_id":"50947fa0-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/www.example.com%2Fspaces%20in%20url","headers":{"user-agent":"node","x-request-id":"50947fa0-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34898},"levelPath":"warn/CitoidService","time":"2026-04-17T11:26:44.949Z","v":0}
✔ spaces in url missing http:// (67ms)
✔ Handles weird encoding
errors
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":50,"levelPath":"error/metrics","msg":"No such metrics client: 'undefined'","time":"2026-04-17T11:26:44.966Z","v":0}
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"msg":"requestFromURL failed for https://example./com","outgoingReqResult":{"error":"AddressError"},"request_id":"50a1ed20-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/example.%2Fcom","headers":{"user-agent":"node","x-request-id":"50a1ed20-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34934},"levelPath":"warn/CitoidService","time":"2026-04-17T11:26:44.982Z","v":0}
✔ bad domain
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"msg":"requestFromURL failed for https://en.wikipedia.org/404","outgoingReqResult":{"status":404,"error":"HTTPError","hostname":"en.wikipedia.org","uri":"https://en.wikipedia.org/404"},"request_id":"50a325a0-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/https%3A%2F%2Fen.wikipedia.org%2F404","headers":{"user-agent":"node","x-request-id":"50a325a0-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34922},"levelPath":"warn/CitoidService","time":"2026-04-17T11:26:44.993Z","v":0}
✔ resource has http errors
✔ unknown doi (123ms)
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"msg":"requestFromURL failed for http://DOI.org/10.1007/11926078_68'","outgoingReqResult":{"status":404,"error":"HTTPError","hostname":"doi.org","uri":"https://doi.org/10.1007/11926078_68'"},"request_id":"50b80d30-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/http%3A%2F%2FDOI.org%2F10.1007%2F11926078_68'","headers":{"user-agent":"node","x-request-id":"50b80d30-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34922},"levelPath":"warn/CitoidService","time":"2026-04-17T11:26:50.250Z","v":0}
✔ doi url with single quote (5206ms)
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"msg":"requestFromURL failed for http://DOI.org/10.1007/11926078_68%22","outgoingReqResult":{"status":404,"error":"HTTPError","hostname":"doi.org","uri":"https://doi.org/10.1007/11926078_68%22"},"request_id":"53d26c90-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/http%3A%2F%2FDOI.org%2F10.1007%2F11926078_68%22","headers":{"user-agent":"node","x-request-id":"53d26c90-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34922},"levelPath":"warn/CitoidService","time":"2026-04-17T11:26:50.371Z","v":0}
✔ doi url with double quote (179ms)
✔ doi with single quote (66ms)
✔ PDF contentType unsupported (42ms)
✔ JSON contentType unsupported (143ms)
- bad pmid
- bad pmcid
deprecated api:
✔ format only
✔ search only
✔ valid search and format
redirects
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":50,"levelPath":"error/metrics","msg":"No such metrics client: 'undefined'","time":"2026-04-17T11:26:50.787Z","v":0}
redirect chains
✔ redirect supported (172ms)
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"levelPath":"warn/hostIsAllowed","request_id":"543489c0-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/https%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttp%3A%2F%2F192.168.1.2","headers":{"user-agent":"node","x-request-id":"543489c0-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34944},"msg":"http://192.168.1.2 is not public, and is disallowed","time":"2026-04-17T11:26:50.977Z","v":0}
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"msg":"requestFromURL failed for https://httpbin.org/redirect-to?url=http://192.168.1.2","outgoingReqResult":{"error":"AddressError"},"request_id":"543489c0-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/https%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttp%3A%2F%2F192.168.1.2","headers":{"user-agent":"node","x-request-id":"543489c0-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34944},"levelPath":"warn/CitoidService","time":"2026-04-17T11:26:50.977Z","v":0}
✔ redir-to-private
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"levelPath":"warn/hostIsAllowed","request_id":"5435e950-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/https%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttp%3A%2F%2F192.168.1.2","headers":{"user-agent":"node","x-request-id":"5435e950-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34944},"msg":"http://192.168.1.2 is not public, and is disallowed","time":"2026-04-17T11:26:50.989Z","v":0}
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"msg":"requestFromURL failed for https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=http://192.168.1.2","outgoingReqResult":{"error":"AddressError"},"request_id":"5435e950-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/https%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttp%3A%2F%2F192.168.1.2","headers":{"user-agent":"node","x-request-id":"5435e950-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34944},"levelPath":"warn/CitoidService","time":"2026-04-17T11:26:50.989Z","v":0}
✔ redir-to-redir-private
✔ follows relative redirects (49ms)
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"levelPath":"warn/hostIsAllowed","request_id":"543f3820-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/https%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttp%3A%2F%2F192.168.1.2","headers":{"user-agent":"node","x-request-id":"543f3820-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34944},"msg":"http://192.168.1.2 is not public, and is disallowed","time":"2026-04-17T11:26:51.055Z","v":0}
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"msg":"requestFromURL failed for https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=http://192.168.1.2","outgoingReqResult":{"error":"AddressError"},"request_id":"543f3820-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/https%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttp%3A%2F%2F192.168.1.2","headers":{"user-agent":"node","x-request-id":"543f3820-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34944},"levelPath":"warn/CitoidService","time":"2026-04-17T11:26:51.056Z","v":0}
✔ redir-to-redir-to-redir-to-private
✔ five-redirect-max-by-default-under (152ms)
✔ five-redirect-max-by-default-equal (109ms)
{"name":"citoid","hostname":"29e8f2131995","pid":358,"level":40,"msg":"requestFromURL failed for https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://httpbin.org/redirect-to?url=https://en.wikipedia.org/wiki/Zotero","outgoingReqResult":{"error":"AddressError"},"request_id":"5469ca90-3a50-11f1-bafe-f5555effb0ae","request":{"url":"/mediawiki/https%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fhttpbin.org%2Fredirect-to%3Furl%3Dhttps%3A%2F%2Fen.wikipedia.org%2Fwiki%2FZotero","headers":{"user-agent":"node","x-request-id":"5469ca90-3a50-11f1-bafe-f5555effb0ae"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34944},"levelPath":"warn/CitoidService","time":"2026-04-17T11:26:51.338Z","v":0}
✔ five-redirect-max-by-default-over
relative redirects
✔ Handles relative filename redirects correctly
✔ Handles ./ relative redirects correctly
✔ Handles ../ parent directory redirects correctly
✔ Handles capital letters in protocol
✔ Handles subdirectory relative redirects correctly
✔ Handles absolute path redirects correctly
✔ Handles protocol-relative redirects correctly
39 passing (9s)
2 pending
citoid routing
{"name":"citoid","hostname":"29e8f2131995","pid":369,"level":50,"levelPath":"error/metrics","msg":"No such metrics client: 'undefined'","time":"2026-04-17T11:26:52.216Z","v":0}
✔ should not get deprecated query style request for uri (90ms)
{"name":"citoid","hostname":"29e8f2131995","pid":369,"level":40,"levelPath":"warn/zotero","request_id":"557bafc0-3a50-11f1-9244-816c9e1a40ff","request":{"url":"/mediawiki/http%3A%2F%2Fexample.com","headers":{"user-agent":"node","x-request-id":"557bafc0-3a50-11f1-9244-816c9e1a40ff"},"method":"GET","params":{"format":"mediawiki"},"query":{},"remoteAddress":"127.0.0.1","remotePort":34958},"msg":"No Zot response available for http://example.com","time":"2026-04-17T11:26:53.174Z","v":0}
✔ should get restbase style request for uri (105ms)
express app
{"name":"citoid","hostname":"29e8f2131995","pid":369,"level":50,"levelPath":"error/metrics","msg":"No such metrics client: 'undefined'","time":"2026-04-17T11:26:53.224Z","v":0}
✔ should get robots.txt
✔ get landing page
✔ should set CORS headers
✔ should set CSP headers
service information
{"name":"citoid","hostname":"29e8f2131995","pid":369,"level":50,"levelPath":"error/metrics","msg":"No such metrics client: 'undefined'","time":"2026-04-17T11:26:53.276Z","v":0}
✔ should get the service name
✔ should get the service version
✔ should redirect to the service home page
✔ should get the service info
✔ should fail to get the service info for invalid endpoint
proxy configuration
{"name":"citoid","hostname":"29e8f2131995","pid":369,"level":50,"levelPath":"error/metrics","msg":"No such metrics client: 'undefined'","time":"2026-04-17T11:26:53.309Z","v":0}
{"name":"citoid","hostname":"29e8f2131995","pid":369,"level":60,"err":{"message":"","name":"TypeError"},"msg":"http.setGlobalProxyFromEnv is not a function","time":"2026-04-17T11:26:53.311Z","v":0}
--- end ---
Traceback (most recent call last):
File "/venv/lib/python3.13/site-packages/runner/__init__.py", line 1268, in main
libup.run()
~~~~~~~~~^^
File "/venv/lib/python3.13/site-packages/runner/__init__.py", line 1208, in run
self.npm_audit_fix(new_npm_audit)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/venv/lib/python3.13/site-packages/runner/__init__.py", line 239, in npm_audit_fix
self.npm_test()
~~~~~~~~~~~~~^^
File "/venv/lib/python3.13/site-packages/runner/__init__.py", line 289, in npm_test
self.check_call(["npm", "test"])
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.13/site-packages/runner/shell2.py", line 66, in check_call
res.check_returncode()
~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/subprocess.py", line 508, in check_returncode
raise CalledProcessError(self.returncode, self.args, self.stdout,
self.stderr)
subprocess.CalledProcessError: Command '['/usr/bin/npm', 'test']' returned non-zero exit status 1.