mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
* fix(security): linear bearer parsing, unbiased verification codes, nested-protocol stripping - @claude-flow/mcp: HTTP and WebSocket transports parse Authorization: Bearer with a prefix compare instead of /^Bearer\s+(.+)$/i, which backtracked quadratically on long whitespace runs (CodeQL js/polynomial-redos). - ruflo-chatgpt-federation: same parser fix in authContext. - @claude-flow/security: generateVerificationCode draws digits with randomInt(10); byte % 10 favoured 0-5 (js/biased-cryptographic-random). - @claude-flow/security: sanitizeString strips javascript:/vbscript:/data: until stable, so javajavascript:script: no longer reassembles javascript: (js/incomplete-url-scheme-check). - cli terminal_create: session ids from crypto randomBytes, not Math.random. Co-Authored-By: RuFlo <ruv@ruv.net> * chore(release): 3.66.2 — mcp 3.1.5, security 3.0.6 Co-Authored-By: RuFlo <ruv@ruv.net> * chore(ruflo-chatgpt-federation): 0.2.5 for the bearer parser fix Co-Authored-By: RuFlo <ruv@ruv.net> * test(ruflo-chatgpt-federation): smoke expects 0.2.5 Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x>
40 lines
1.1 KiB
JSON
40 lines
1.1 KiB
JSON
{
|
|
"name": "@claude-flow/security",
|
|
"version": "3.0.6",
|
|
"type": "module",
|
|
"description": "Security module - CVE fixes, input validation, path security",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"files": [
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"exports": {
|
|
".": "./dist/index.js",
|
|
"./*": "./dist/*.js"
|
|
},
|
|
"scripts": {
|
|
"test": "vitest run",
|
|
"benchmark:policy": "npm run build && node scripts/benchmark-policy-engine.mjs",
|
|
"benchmark:product-plane": "npm run build && node scripts/benchmark-product-plane.mjs",
|
|
"test:oauth-surface": "vitest run __tests__/oauth-export-surface.test.ts __tests__/oauth-pkce.test.ts __tests__/oauth-browser.test.ts",
|
|
"build": "tsc && node scripts/verify-oauth-exports.mjs",
|
|
"prepare": "npm run build",
|
|
"prepublishOnly": "npm run build && npm run test:oauth-surface"
|
|
},
|
|
"dependencies": {
|
|
"@noble/ed25519": "^2.1.0",
|
|
"bcryptjs": "^3.0.3",
|
|
"zod": "^3.22.0"
|
|
},
|
|
"optionalDependencies": {
|
|
"@napi-rs/keyring": "1.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"vitest": "^4.1.0"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
}
|
|
}
|