From 4e7d4168afe2f314920639c9ce1f8b83c95b4d90 Mon Sep 17 00:00:00 2001 From: fretchen Date: Fri, 20 Nov 2026 18:52:51 +0100 Subject: [PATCH] eslint security --- analytics/eslint.config.js | 19 +++++++++++++++ analytics/package-lock.json | 37 ++++++++++++++++++++++++++++++ analytics/package.json | 1 + analytics/storage.ts | 4 ++++ bunny_js/eslint.config.js | 18 +++++++++++++++ bunny_js/package-lock.json | 37 ++++++++++++++++++++++++++++++ bunny_js/package.json | 1 + comment_service/eslint.config.js | 19 +++++++++++++++ comment_service/package-lock.json | 37 ++++++++++++++++++++++++++++++ comment_service/package.json | 1 + scw_js/eslint.config.js | 18 +++++++++++++++ scw_js/package-lock.json | 37 ++++++++++++++++++++++++++++++ scw_js/package.json | 1 + scw_js/scripts/openapi-codegen.ts | 1 + x402_facilitator/eslint.config.js | 19 +++++++++++++++ x402_facilitator/package-lock.json | 37 ++++++++++++++++++++++++++++++ x402_facilitator/package.json | 1 + 17 files changed, 288 insertions(+) diff --git a/analytics/eslint.config.js b/analytics/eslint.config.js index a9b371e16..c06c471c7 100644 --- a/analytics/eslint.config.js +++ b/analytics/eslint.config.js @@ -1,4 +1,5 @@ import js from "@eslint/js"; +import securityPlugin from "eslint-plugin-security"; import tseslint from "typescript-eslint"; export default tseslint.config( @@ -62,6 +63,24 @@ export default tseslint.config( "object-shorthand": "error", }, }, + // Security hotspot rules (eslint-plugin-security): recommended set on source files, + // noisy/irrelevant rules off. detect-object-injection fires on every computed property + // access; the CSRF/mustache rules assume Express/server-side templates we don't use; + // Buffer noAssert is a deprecated pattern. Unambiguous rules are errors. + { + files: ["**/*.ts"], + ignores: ["test/**", "**/*.test.ts"], + plugins: { security: securityPlugin }, + rules: { + ...securityPlugin.configs.recommended.rules, + "security/detect-object-injection": "off", + "security/detect-no-csrf-before-method-override": "off", + "security/detect-disable-mustache-escape": "off", + "security/detect-buffer-noassert": "off", + "security/detect-pseudoRandomBytes": "error", + "security/detect-eval-with-expression": "error", + }, + }, // Test files: vitest globals + relax unsafe rules (mocks are inherently untyped) { files: ["test/**/*.ts", "**/*.test.ts"], diff --git a/analytics/package-lock.json b/analytics/package-lock.json index 00ef5650a..45e327759 100644 --- a/analytics/package-lock.json +++ b/analytics/package-lock.json @@ -21,6 +21,7 @@ "@vitest/coverage-v8": "^5.1.0", "dotenv": "^17.4.2", "eslint": "^10.0.0", + "eslint-plugin-security": "^4.2.1", "prettier": "^3.0.0", "serverless-scaleway-functions": ">=0.4.16", "tsdown": "^0.23.1", @@ -4069,6 +4070,22 @@ } } }, + "node_modules/eslint-plugin-security": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-4.2.1.tgz", + "integrity": "sha512-iF95SSqdSUVTvB7srNXoNeTQIqwfALTn9nmoqJyixSIKqEydlW01Cqb7xNveqE4Zd6YWBoQICQ4FH9NkR1byDg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "safe-regex": "^2.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/eslint-scope": { "version": "9.1.2", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz", @@ -7023,6 +7040,16 @@ "node": ">= 12.13.0" } }, + "node_modules/regexp-tree": { + "version": "0.1.27", + "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.27.tgz", + "integrity": "sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==", + "dev": true, + "license": "MIT", + "bin": { + "regexp-tree": "bin/regexp-tree" + } + }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -7254,6 +7281,16 @@ ], "license": "MIT" }, + "node_modules/safe-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz", + "integrity": "sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==", + "dev": true, + "license": "MIT", + "dependencies": { + "regexp-tree": "~0.1.1" + } + }, "node_modules/safe-regex2": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/safe-regex2/-/safe-regex2-3.1.0.tgz", diff --git a/analytics/package.json b/analytics/package.json index 0e69bb144..32050f012 100644 --- a/analytics/package.json +++ b/analytics/package.json @@ -45,6 +45,7 @@ "@vitest/coverage-v8": "^5.1.0", "dotenv": "^17.4.2", "eslint": "^10.0.0", + "eslint-plugin-security": "^4.2.1", "prettier": "^3.0.0", "serverless-scaleway-functions": ">=0.4.16", "tsdown": "^0.23.1", diff --git a/analytics/storage.ts b/analytics/storage.ts index 80ac4c8ef..07ee7f9f2 100644 --- a/analytics/storage.ts +++ b/analytics/storage.ts @@ -57,9 +57,11 @@ export class FileHitStorage implements HitStorage { async getWithMeta(key: string): Promise { const filePath = this.pathFor(key); + // eslint-disable-next-line security/detect-non-literal-fs-filename -- key = pinned ALLOWED_SITE + UTC timestamp, never request data if (!existsSync(filePath)) { return null; } + // eslint-disable-next-line security/detect-non-literal-fs-filename -- same key derivation as above const body = await readFile(filePath, "utf8"); return { body, etag: this.etagOf(body) }; } @@ -73,7 +75,9 @@ export class FileHitStorage implements HitStorage { return { ok: false, status: 412 }; } const filePath = this.pathFor(key); + // eslint-disable-next-line security/detect-non-literal-fs-filename -- same key derivation as above await mkdir(path.dirname(filePath), { recursive: true }); + // eslint-disable-next-line security/detect-non-literal-fs-filename -- same key derivation as above await writeFile(filePath, body, "utf8"); return { ok: true, etag: this.etagOf(body) }; } diff --git a/bunny_js/eslint.config.js b/bunny_js/eslint.config.js index 469de9f8d..9e083fe8d 100644 --- a/bunny_js/eslint.config.js +++ b/bunny_js/eslint.config.js @@ -1,4 +1,5 @@ import js from "@eslint/js"; +import securityPlugin from "eslint-plugin-security"; import tseslint from "typescript-eslint"; export default tseslint.config( @@ -47,6 +48,23 @@ export default tseslint.config( "object-shorthand": "error", }, }, + // Security hotspot rules (eslint-plugin-security): recommended set on source files, + // noisy/irrelevant rules off. detect-object-injection fires on every computed property + // access; the CSRF/mustache rules assume Express/server-side templates we don't use; + // Buffer noAssert is a deprecated pattern. Unambiguous rules are errors. + { + files: ["src/**/*.ts", "scripts/**/*.ts"], + plugins: { security: securityPlugin }, + rules: { + ...securityPlugin.configs.recommended.rules, + "security/detect-object-injection": "off", + "security/detect-no-csrf-before-method-override": "off", + "security/detect-disable-mustache-escape": "off", + "security/detect-buffer-noassert": "off", + "security/detect-pseudoRandomBytes": "error", + "security/detect-eval-with-expression": "error", + }, + }, // Test files: type-aware like the rest of the package, plus vitest globals. { files: ["test/**/*.ts", "**/*.test.ts"], diff --git a/bunny_js/package-lock.json b/bunny_js/package-lock.json index 0fc23db00..ccc74cd17 100644 --- a/bunny_js/package-lock.json +++ b/bunny_js/package-lock.json @@ -24,6 +24,7 @@ "@vitest/coverage-v8": "^5.1.0", "@vitest/eslint-plugin": "^1.6.27", "eslint": "^10.0.0", + "eslint-plugin-security": "^4.2.1", "prettier": "^3.6.2", "tsdown": "^0.23.1", "tsx": "^4.23.15", @@ -2373,6 +2374,22 @@ } } }, + "node_modules/eslint-plugin-security": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-4.2.1.tgz", + "integrity": "sha512-iF95SSqdSUVTvB7srNXoNeTQIqwfALTn9nmoqJyixSIKqEydlW01Cqb7xNveqE4Zd6YWBoQICQ4FH9NkR1byDg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "safe-regex": "^2.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/eslint-scope": { "version": "9.1.2", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz", @@ -3482,6 +3499,16 @@ ], "license": "MIT" }, + "node_modules/regexp-tree": { + "version": "0.1.27", + "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.27.tgz", + "integrity": "sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==", + "dev": true, + "license": "MIT", + "bin": { + "regexp-tree": "bin/regexp-tree" + } + }, "node_modules/require-from-string": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", @@ -3582,6 +3609,16 @@ } } }, + "node_modules/safe-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz", + "integrity": "sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==", + "dev": true, + "license": "MIT", + "dependencies": { + "regexp-tree": "~0.1.1" + } + }, "node_modules/semver": { "version": "7.8.5", "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", diff --git a/bunny_js/package.json b/bunny_js/package.json index cb83baa57..60ec2ac94 100644 --- a/bunny_js/package.json +++ b/bunny_js/package.json @@ -39,6 +39,7 @@ "@vitest/coverage-v8": "^5.1.0", "@vitest/eslint-plugin": "^1.6.27", "eslint": "^10.0.0", + "eslint-plugin-security": "^4.2.1", "prettier": "^3.6.2", "tsdown": "^0.23.1", "tsx": "^4.23.15", diff --git a/comment_service/eslint.config.js b/comment_service/eslint.config.js index caa614ab2..a86790ea7 100644 --- a/comment_service/eslint.config.js +++ b/comment_service/eslint.config.js @@ -1,4 +1,5 @@ import js from "@eslint/js"; +import securityPlugin from "eslint-plugin-security"; import tseslint from "typescript-eslint"; export default tseslint.config( @@ -49,6 +50,24 @@ export default tseslint.config( "object-shorthand": "error", }, }, + // Security hotspot rules (eslint-plugin-security): recommended set on source files, + // noisy/irrelevant rules off. detect-object-injection fires on every computed property + // access; the CSRF/mustache rules assume Express/server-side templates we don't use; + // Buffer noAssert is a deprecated pattern. Unambiguous rules are errors. + { + files: ["**/*.ts"], + ignores: ["test/**", "**/*.test.ts"], + plugins: { security: securityPlugin }, + rules: { + ...securityPlugin.configs.recommended.rules, + "security/detect-object-injection": "off", + "security/detect-no-csrf-before-method-override": "off", + "security/detect-disable-mustache-escape": "off", + "security/detect-buffer-noassert": "off", + "security/detect-pseudoRandomBytes": "error", + "security/detect-eval-with-expression": "error", + }, + }, // Test files: vitest globals + relax unsafe rules (mocks are inherently untyped) { files: ["test/**/*.ts", "**/*.test.ts"], diff --git a/comment_service/package-lock.json b/comment_service/package-lock.json index c8582c5d0..9bb560eac 100644 --- a/comment_service/package-lock.json +++ b/comment_service/package-lock.json @@ -17,6 +17,7 @@ "@types/node": "^25.0.10", "@vitest/coverage-v8": "^5.1.0", "eslint": "^10.0.0", + "eslint-plugin-security": "^4.2.1", "prettier": "^3.0.0", "serverless-scaleway-functions": ">=0.4.16", "tsdown": "^0.23.1", @@ -3440,6 +3441,22 @@ } } }, + "node_modules/eslint-plugin-security": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-4.2.1.tgz", + "integrity": "sha512-iF95SSqdSUVTvB7srNXoNeTQIqwfALTn9nmoqJyixSIKqEydlW01Cqb7xNveqE4Zd6YWBoQICQ4FH9NkR1byDg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "safe-regex": "^2.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/eslint-scope": { "version": "9.1.2", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz", @@ -6335,6 +6352,16 @@ "node": ">= 12.13.0" } }, + "node_modules/regexp-tree": { + "version": "0.1.27", + "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.27.tgz", + "integrity": "sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==", + "dev": true, + "license": "MIT", + "bin": { + "regexp-tree": "bin/regexp-tree" + } + }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -6566,6 +6593,16 @@ ], "license": "MIT" }, + "node_modules/safe-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz", + "integrity": "sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==", + "dev": true, + "license": "MIT", + "dependencies": { + "regexp-tree": "~0.1.1" + } + }, "node_modules/safe-regex2": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/safe-regex2/-/safe-regex2-3.1.0.tgz", diff --git a/comment_service/package.json b/comment_service/package.json index 4579236c8..5e66a5716 100644 --- a/comment_service/package.json +++ b/comment_service/package.json @@ -37,6 +37,7 @@ "@types/node": "^25.0.10", "@vitest/coverage-v8": "^5.1.0", "eslint": "^10.0.0", + "eslint-plugin-security": "^4.2.1", "prettier": "^3.0.0", "serverless-scaleway-functions": ">=0.4.16", "tsdown": "^0.23.1", diff --git a/scw_js/eslint.config.js b/scw_js/eslint.config.js index 56d8025d0..de8a295b7 100644 --- a/scw_js/eslint.config.js +++ b/scw_js/eslint.config.js @@ -1,4 +1,5 @@ import js from "@eslint/js"; +import securityPlugin from "eslint-plugin-security"; import tseslint from "typescript-eslint"; export default tseslint.config( @@ -57,6 +58,23 @@ export default tseslint.config( "object-shorthand": "error", }, }, + // Security hotspot rules (eslint-plugin-security): recommended set on source files, + // noisy/irrelevant rules off. detect-object-injection fires on every computed property + // access; the CSRF/mustache rules assume Express/server-side templates we don't use; + // Buffer noAssert is a deprecated pattern. Unambiguous rules are errors. + { + files: ["*.ts", "scripts/**/*.ts"], + plugins: { security: securityPlugin }, + rules: { + ...securityPlugin.configs.recommended.rules, + "security/detect-object-injection": "off", + "security/detect-no-csrf-before-method-override": "off", + "security/detect-disable-mustache-escape": "off", + "security/detect-buffer-noassert": "off", + "security/detect-pseudoRandomBytes": "error", + "security/detect-eval-with-expression": "error", + }, + }, // Test files: type-aware like the rest of the package (now in tsconfig's `include`), plus // vitest globals. { diff --git a/scw_js/package-lock.json b/scw_js/package-lock.json index 3202d64ca..b43950e65 100644 --- a/scw_js/package-lock.json +++ b/scw_js/package-lock.json @@ -31,6 +31,7 @@ "@vitest/eslint-plugin": "^1.6.27", "eslint": "^10.0.0", "eslint-plugin-node": "^11.1.0", + "eslint-plugin-security": "^4.2.1", "fastify": "^5.12.1", "prettier": "^3.6.2", "serverless-scaleway-functions": ">=0.5.1", @@ -4595,6 +4596,22 @@ "semver": "bin/semver.js" } }, + "node_modules/eslint-plugin-security": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-4.2.1.tgz", + "integrity": "sha512-iF95SSqdSUVTvB7srNXoNeTQIqwfALTn9nmoqJyixSIKqEydlW01Cqb7xNveqE4Zd6YWBoQICQ4FH9NkR1byDg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "safe-regex": "^2.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/eslint-scope": { "version": "9.1.2", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz", @@ -7995,6 +8012,16 @@ "integrity": "sha512-P4nbQYQfePJxRSmY+v/KINxVucm4NF3p3s7pJveMTtom52FR4YGltUQLB8idDXwDDWW+eYrWDFbuzUnjoWHF7g==", "license": "MIT" }, + "node_modules/regexp-tree": { + "version": "0.1.27", + "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.27.tgz", + "integrity": "sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==", + "dev": true, + "license": "MIT", + "bin": { + "regexp-tree": "bin/regexp-tree" + } + }, "node_modules/regexpp": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", @@ -8301,6 +8328,16 @@ ], "license": "MIT" }, + "node_modules/safe-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz", + "integrity": "sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==", + "dev": true, + "license": "MIT", + "dependencies": { + "regexp-tree": "~0.1.1" + } + }, "node_modules/safe-regex2": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-regex2/-/safe-regex2-5.1.2.tgz", diff --git a/scw_js/package.json b/scw_js/package.json index f4cac1cb0..fba31321e 100644 --- a/scw_js/package.json +++ b/scw_js/package.json @@ -36,6 +36,7 @@ "@vitest/eslint-plugin": "^1.6.27", "eslint": "^10.0.0", "eslint-plugin-node": "^11.1.0", + "eslint-plugin-security": "^4.2.1", "fastify": "^5.12.1", "prettier": "^3.6.2", "serverless-scaleway-functions": ">=0.5.1", diff --git a/scw_js/scripts/openapi-codegen.ts b/scw_js/scripts/openapi-codegen.ts index 0075f2430..1dec1d2ea 100644 --- a/scw_js/scripts/openapi-codegen.ts +++ b/scw_js/scripts/openapi-codegen.ts @@ -131,6 +131,7 @@ export function toComponentSchema(schema: z.ZodType): Record { * The golden-file tests compare parsed JSON, so formatting never affects them either way. */ export function writeSpec(outputPath: string, spec: object): void { + // eslint-disable-next-line security/detect-non-literal-fs-filename -- dev codegen script, outputPath is a repo-local CLI arg writeFileSync(outputPath, JSON.stringify(spec, null, 2) + "\n"); console.log(`Generated ${outputPath}`); } diff --git a/x402_facilitator/eslint.config.js b/x402_facilitator/eslint.config.js index 175be1f3a..f2035ee71 100644 --- a/x402_facilitator/eslint.config.js +++ b/x402_facilitator/eslint.config.js @@ -1,4 +1,5 @@ import js from "@eslint/js"; +import securityPlugin from "eslint-plugin-security"; import tseslint from "typescript-eslint"; export default tseslint.config( @@ -84,6 +85,24 @@ export default tseslint.config( "object-shorthand": "error", }, }, + // Security hotspot rules (eslint-plugin-security): recommended set on source files, + // noisy/irrelevant rules off. detect-object-injection fires on every computed property + // access; the CSRF/mustache rules assume Express/server-side templates we don't use; + // Buffer noAssert is a deprecated pattern. Unambiguous rules are errors. + { + files: ["**/*.ts"], + ignores: ["test/**", "**/*.test.ts"], + plugins: { security: securityPlugin }, + rules: { + ...securityPlugin.configs.recommended.rules, + "security/detect-object-injection": "off", + "security/detect-no-csrf-before-method-override": "off", + "security/detect-disable-mustache-escape": "off", + "security/detect-buffer-noassert": "off", + "security/detect-pseudoRandomBytes": "error", + "security/detect-eval-with-expression": "error", + }, + }, // Test files: vitest globals + relax unsafe rules (mocks are inherently untyped) { files: ["test/**/*.ts", "**/*.test.ts", "test/**/*.js", "**/*.test.js"], diff --git a/x402_facilitator/package-lock.json b/x402_facilitator/package-lock.json index 1bd77277b..ace4ea677 100644 --- a/x402_facilitator/package-lock.json +++ b/x402_facilitator/package-lock.json @@ -20,6 +20,7 @@ "@types/node": "^25.0.10", "@vitest/coverage-v8": "^5.1.0", "eslint": "^10.0.0", + "eslint-plugin-security": "^4.2.1", "prettier": "^3.0.0", "serverless-scaleway-functions": ">=0.4.16", "tsdown": "^0.23.1", @@ -4083,6 +4084,22 @@ } } }, + "node_modules/eslint-plugin-security": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-4.2.1.tgz", + "integrity": "sha512-iF95SSqdSUVTvB7srNXoNeTQIqwfALTn9nmoqJyixSIKqEydlW01Cqb7xNveqE4Zd6YWBoQICQ4FH9NkR1byDg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "safe-regex": "^2.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/eslint-scope": { "version": "9.1.2", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz", @@ -7021,6 +7038,16 @@ "node": ">= 12.13.0" } }, + "node_modules/regexp-tree": { + "version": "0.1.27", + "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.27.tgz", + "integrity": "sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==", + "dev": true, + "license": "MIT", + "bin": { + "regexp-tree": "bin/regexp-tree" + } + }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -7252,6 +7279,16 @@ ], "license": "MIT" }, + "node_modules/safe-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz", + "integrity": "sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==", + "dev": true, + "license": "MIT", + "dependencies": { + "regexp-tree": "~0.1.1" + } + }, "node_modules/safe-regex2": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/safe-regex2/-/safe-regex2-3.1.0.tgz", diff --git a/x402_facilitator/package.json b/x402_facilitator/package.json index 878efc253..451b28f51 100644 --- a/x402_facilitator/package.json +++ b/x402_facilitator/package.json @@ -44,6 +44,7 @@ "@types/node": "^25.0.10", "@vitest/coverage-v8": "^5.1.0", "eslint": "^10.0.0", + "eslint-plugin-security": "^4.2.1", "prettier": "^3.0.0", "serverless-scaleway-functions": ">=0.4.16", "tsdown": "^0.23.1",