JavaScript / Node.js 漏洞与安全更新
1,000 条以上
12月5日周六昨天
node-tar: Denial of service via unbounded memory allocation bypassing maxDecompressionRatio
受影响: npm:tar < 8.0.0 → 8.0.0 The maxDecompressionRatio guard tar added for GHSA-23hp-3jrh-7fpw is evaluated after node zlib has already materialized the inflated output, so it observes an allocation rather than bounding one. A remote, unauthenticated party who can hand tar.t()/tar.x() an archive can deny service with 65,608 bytes, at stock settings. Details The check runs from the decompressor's 'data' event, which fires once per call to node zlib's synchronous _processChunk — by then that input chunk's entire inflated out…
Vue I18n: escapeParameter sanitizer leaves elements open, so a translation can change how the rest of an SSR page is parsed
受影响: npm:vue-i18n = 9.14.5, npm:vue-i18n = 10.0.8, npm:vue-i18n >= 11.1.10, < 11.4.22 → 11.4.22, npm:vue-i18n >= 12.0.0-alpha.4, < 12.0.0-alpha.13 → 12.0.0-alpha.13, npm:petite-vue-i18n = 9.14.5, npm:petite-vue-i18n = 10.0.8, npm:petite-vue-i18n >= 11.1.10, < 11.4.22 → 11.4.22, npm:petite-vue-i18n >= 12.0.0-alpha.4, < 12.0.0-alpha.13 → 12.0.0-alpha.13, npm:@intlify/core-base = 9.14.5, npm:@intlify/core-base = 10.0.8, npm:@intlify/core-base >= 11.1.10, < 11.4.22 → 11.4.22, npm:@intlify/core-base >= 12.0.0-alpha.4, < 12.0.0-alpha.13 → 12.0.0-alpha.13, npm:@intlify/core = 9.14.5, npm:@intlify/core = 10.0.8, npm:@intlify/core >= 11.1.10, < 11.4.22 → 11.4.22, npm:@intlify/core >= 12.0.0-alpha.4, < 12.0.0-alpha.13 → 12.0.0-alpha.13, npm:@intlify/vue-i18n-core = 9.14.5, npm:@intlify/vue-i18n-core = 10.0.8, npm:@intlify/vue-i18n-core >= 11.1.10, < 11.4.22 → 11.4.22, npm:@intlify/vue-i18n-core >= 12.0.0-alpha.4, < 12.0.0-alpha.13 → 12.0.0-alpha.13, npm:@intlify/shared = 9.14.5, npm:@intlify/shared = 10.0.8, npm:@intlify/shared >= 11.1.10, < 11.4.22 → 11.4.22, npm:@intlify/shared >= 12.0.0-alpha.4, < 12.0.0-alpha.13 → 12.0.0-alpha.13 When escapeParameter is enabled (escapeParameterHtml in the Legacy API), Vue I18n sanitizes the translated HTML with sanitizeTranslatedHtml(). The sanitizer reads tags in the same way as the HTML tokenizer, but it does not follow how elements open and close. An element that a translation leaves open, or an end tag that closes an element outside the translation, stays in the result. When the page is rendered on the server (SSR), the rest of the page follows the translation in the same HTML, and…
Vue I18n: sanitizeTranslatedHtml bypass via unterminated attribute values
受影响: npm:vue-i18n = 9.14.5, npm:vue-i18n = 10.0.8, npm:vue-i18n >= 11.1.10, < 11.4.19 → 11.4.19, npm:vue-i18n >= 12.0.0-alpha.4, < 12.0.0-alpha.10 → 12.0.0-alpha.10, npm:petite-vue-i18n = 9.14.5, npm:petite-vue-i18n = 10.0.8, npm:petite-vue-i18n >= 11.1.10, < 11.4.19 → 11.4.19, npm:petite-vue-i18n >= 12.0.0-alpha.4, < 12.0.0-alpha.10 → 12.0.0-alpha.10, npm:@intlify/core-base = 9.14.5, npm:@intlify/core-base = 10.0.8, npm:@intlify/core-base >= 11.1.10, < 11.4.19 → 11.4.19, npm:@intlify/core-base >= 12.0.0-alpha.4, < 12.0.0-alpha.10 → 12.0.0-alpha.10, npm:@intlify/core = 9.14.5, npm:@intlify/core = 10.0.8, npm:@intlify/core >= 11.1.10, < 11.4.19 → 11.4.19, npm:@intlify/core >= 12.0.0-alpha.4, < 12.0.0-alpha.10 → 12.0.0-alpha.10, npm:@intlify/vue-i18n-core = 9.14.5, npm:@intlify/vue-i18n-core = 10.0.8, npm:@intlify/vue-i18n-core >= 11.1.10, < 11.4.19 → 11.4.19, npm:@intlify/vue-i18n-core >= 12.0.0-alpha.4, < 12.0.0-alpha.10 → 12.0.0-alpha.10, npm:@intlify/shared = 9.14.5, npm:@intlify/shared = 10.0.8, npm:@intlify/shared >= 11.1.10, < 11.4.19 → 11.4.19, npm:@intlify/shared >= 12.0.0-alpha.4, < 12.0.0-alpha.10 → 12.0.0-alpha.10 When escapeParameter is enabled (escapeParameterHtml in the Legacy API), Vue I18n passes the translated string through sanitizeTranslatedHtml(). The sanitizer disables javascript: URLs by rewriting them to about:blank — but only for attributes it can recognize. Both recognition passes require a well-formed attribute: the quoted pass needs the closing quote inside the message, and the unquoted pass rejects any value that starts with a quote character. A message that opens an attribute value and…
websocket-driver: Server crash triggered by client sending message data in the same TCP chunk as request headers
受影响: npm:websocket-driver < 0.8.3 → 0.8.3 A WebSocket server implemented using websocket-driver can be made to crash by a remote client sending WebSocket message data in the TCP chunk as its handshake request headers. Details The websocket.http() driver constructor is designed to be used with the Node HTTP upgrade event, which yields an HTTP request, the bare TCP socket, and a buffer containing the request body to the event listener. The documentation instructs users to pass the request body to the driver, before calling start() on it,…
websocket-driver: Memory exhaustion triggered by client continuing to send message data after the server sent a Close frame
受影响: npm:websocket-driver < 0.8.3 → 0.8.3 A WebSocket server built using websocket-driver can be made to buffer data from the client beyond the limit set by maxLength, if it attempts to close the socket but the client ignores this request and continues to send data on a half-open socket. Details When a websocket-driver instance calls close(), this has the effect of sending a WebSocket Close frame to the other peer. The peer should respond with its own Close frame and then both parties should close the connection. If the client ignores…
Socket.IO: Engine.IO DoS via memory exhaustion
受影响: npm:engine.io < 6.6.13 → 6.6.13 A Denial-of-Service (DoS) vulnerability exists in Engine.IO server due to unbounded chunk buffering when processing polling POST requests. This vulnerability primarily affects direct connections to the Engine.IO server (without a reverse proxy), as most reverse proxies (Nginx, HAProxy, Apache) will concatenate chunks before forwarding them to the backend. An attacker with direct access could send a request body split into many small chunks, forcing the server to create excessive string objects…
minimatch: Proto Key Bypasses Cache-Key Weighting in minimatch's Shared Matcher Cache
受影响: npm:minimatch >= 11.0.6, <= 11.0.9 → 11.0.10 minimatch's module-global matcher cache can be poisoned by a __proto__ key in the options object passed to minimatch(). optionsKey() scores that key the same as no options at all, while copyOptions()'s bare for...in loop re-parents its copy onto the attacker's prototype instead of copying it as an own property — one caller doing this is enough to flip the cached matcher's case-sensitivity for every later, unrelated caller matching the same pattern string. Details src/index.ts:229-234, optionsKe…
Glob: Absolute `ignore` pattern silently bypassed when `root`/`cwd` path contains braces
受影响: npm:glob <= 14.0.5 → 14.0.6 glob's ignore option composes an absolute ignore pattern by pasting the resolved root/cwd path into a glob string, then re-parsing that string with minimatch. The path is escaped with minimatch's escape(), but escape() only escapes { and } when magicalBraces is enabled — which glob does not do. A root path containing braces is therefore brace-expanded during re-parsing, and the resulting ignore pattern no longer matches the real path. The exclusion is silently dropped and the excluded file is r…
Vue I18n: Prototype Pollution via the `locale` argument of `mergeLocaleMessage`, `mergeDateTimeFormat` and `mergeNumberFormat`
受影响: npm:vue-i18n >= 7.0.0, < 9.0.0, npm:vue-i18n >= 9.0.0, <= 11.4.13 → 11.4.14, npm:vue-i18n >= 12.0.0-alpha.1, <= 12.0.0-alpha.4 → 12.0.0-alpha.5, npm:petite-vue-i18n >= 9.2.0-alpha.7, <= 11.4.13 → 11.4.14, npm:petite-vue-i18n >= 12.0.0-alpha.1, <= 12.0.0-alpha.4 → 12.0.0-alpha.5, npm:@intlify/vue-i18n-core >= 9.2.0-alpha.7, <= 11.4.13 → 11.4.14, npm:@intlify/vue-i18n-core >= 12.0.0-alpha.1, <= 12.0.0-alpha.4 → 12.0.0-alpha.5, npm:vue-i18n-bridge <= 10.0.0-alpha.1 In vue-i18n v9 and later, mergeLocaleMessage(), mergeDateTimeFormat() and mergeNumberFormat() look up the entry to merge into with container[locale]. When the locale is the name of a property inherited from Object.prototype, this lookup returns a built-in object, and the methods write into it: - With '__proto__', all three methods write into Object.prototype. - With 'constructor', mergeDateTimeFormat() and mergeNumberFormat() write into the global Object. A format with a key such as keys replac…
cross-spawn: Command injection on Windows when the command is not a plain program name or path
受影响: npm:cross-spawn >= 7.0.0, < 7.1.1 → 7.1.1, npm:cross-spawn < 6.0.8 → 6.0.8 On Windows, cross-spawn runs commands that aren't executables, such as batch files (.bat and .cmd), through cmd.exe, and escapes their arguments for it. Batch files need a stricter escaping, because cmd.exe parses their arguments a second time. 7.1.0 and 6.0.7 fixed that escaping ([GHSA-ghv9-86vm-4v8m](https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-ghv9-86vm-4v8m)), but it only applies when cross-spawn detects that the command is a batch file. The detection could be byp…
12月4日周五
cross-spawn: Argument injection on Windows via backslashes before a double quote
受影响: npm:cross-spawn >= 7.0.4, < 7.1.0 → 7.1.0, npm:cross-spawn = 6.0.6 → 6.0.7 On Windows, when cross-spawn runs a command through cmd.exe, it quotes each argument and doubles the backslashes that precede a double quote or the end of the argument, so that they aren't taken as escaping the quote. Since 7.0.4, 7.0.5 and 6.0.6, which changed the regular expressions to fix a ReDoS vulnerability (GHSA-3xgq-45jj-v275), backslash runs weren't doubled correctly: 7.0.4 didn't double them at all, and 7.0.5, 7.0.6 and 6.0.6 added only one backslash to each run. An argument with two…
Mongoose: `sanitizeFilter` bypass via MongoDB internal top-level query operators such as `$_internalSchemaXor`
受影响: npm:mongoose < 6.13.13 → 6.13.13, npm:mongoose >= 7.0.0, < 7.8.14 → 7.8.14, npm:mongoose >= 8.0.0, < 8.24.10 → 8.24.10, npm:mongoose >= 9.0.0, < 9.12.2 → 9.12.2 Mongoose's sanitizeFilter option is meant to block query selector injection. Before this fix, it only refused four top-level operators by name: $jsonSchema, $where, $expr and $text. Any other top-level $ operator was passed to MongoDB unchanged. That includes undocumented internal operators like $_internalSchemaXor and $_internalSchemaCond, which take sub-filters, and sanitizeFilter never inspected those sub-filters. An attacker who controls the keys of a query filter could use them to slip arb…
Mongoose: sanitizeProjection can be bypassed to include fields deselected with `select: false`
受影响: npm:mongoose >= 8.5.0, < 8.24.10 → 8.24.10, npm:mongoose >= 9.0.0, < 9.12.2 → 9.12.2 Since Mongoose 8.5.0, the sanitizeProjection option prevents untrusted projections from including fields that the schema deselects with select: false, like password hashes and reset tokens. Several projection forms got around that check, so a user-controlled projection could still return select: false fields even with sanitizeProjection enabled. Mongoose versions before 8.5.0 do not make sanitizeProjection block including select: false keys - hiding select: false keys was a new feature introduc…
DOMPurify SAFE_FOR_TEMPLATES bypass: nested <form> makes a template expression reassemble when sanitized output is reparsed
受影响: npm:dompurify < 3.5.0 → 3.5.0 With SAFE_FOR_TEMPLATES: true, DOMPurify 3.4.18 returns a string that contains no {{ or }}, yet becomes a live {{…}} expression as soon as it is assigned to innerHTML. A template engine that compiles that DOM (verified with Vue 3 in-DOM templates and AngularJS 1.8.3) evaluates the attacker's expression, giving arbitrary JavaScript execution. The attacker controls only the markup passed to sanitize(). The only configuration required is SAFE_FOR_TEMPLATES: true, which is a protective option used…
12月3日周四
Next.js 16.5
Next.js 16.5 brings faster Turbopack builds, cross-deployment caching, Go Route Handlers, and more.
Native Languages in Next.js
Next.js 16.5 introduces experimental Go support with route.go, alongside the first phase of rewriting the next start server in Go.
12月2日周三
แจ้งเตือน! พบแคมเปญ React2Keys ใช้ช่องโหว่ React2Shell โจมตีเซิร์ฟเวอร์ ขโมยข้อมูลรับรองการเข้าถึงระบบกว่า 50,000 รายการ ส่งผลกระทบต่อระบบที่ใช้ React Server Components และ Next.js
ศูนย์ประสานการรักษาความมั่นคงปลอดภัยระบบคอมพิวเตอร์แห่ง…
fast-xml-parser: Quadratic-time (ReDoS-class) denial of service in XMLValidator attribute scanner, default options
受影响: npm:fast-xml-parser <= 5.12.0 → 5.12.1 Reported by Nikhil Agrawal, Mettle Labs; reproduced only against a clean local install of fast-xml-parser@5.11.2 on their own machine. scanAttributeTokens in src/validator.js rescans a leading-whitespace run on every loop iteration when it hits a stray =, giving Theta(n^2) time. A few-hundred-KB input stalls the event loop for tens of seconds. Reachable on the default path via both XMLValidator.validate(xml) and new XMLParser().parse(xml, true), no non-default options. Details src/validator.js,…
Malicious code in executor-engine (PyPI)
受影响: pip:executor-engine = 0.3.4, pip:executor-engine = 0.3.5 Part of the "Hades" wave of the Shai-Hulud supply-chain campaign. On 2026-06-08, malicious phantom releases of executor-engine were published to PyPI using stolen credentials. The package executes a bundled JavaScript payload (via the Bun runtime) on import that harvests and exfiltrates credentials and attempts self-propagation. This entry is a summary; behavior may not be fully characterized here. See the linked references for detailed analysis and indicators of compromise.
Malicious code in funcdesc (PyPI)
受影响: pip:funcdesc = 0.2.2, pip:funcdesc = 0.2.3 Part of the "Hades" wave of the Shai-Hulud supply-chain campaign. On 2026-06-08, malicious phantom releases of funcdesc were published to PyPI using stolen credentials. The package executes a bundled JavaScript payload (via the Bun runtime) on import that harvests and exfiltrates credentials and attempts self-propagation. This entry is a summary; behavior may not be fully characterized here. See the linked references for detailed analysis and indicators of compromise.
node-tar UnpackSync never completes sync-stream extraction after any failing entry (PEND/UNPEND imbalance)
受影响: npm:tar >= 7.5.22, < 8.0.0 → 8.0.0 When node-tar's synchronous stream extraction (tar.x({ sync: true }) without the file option, or a directly-constructed UnpackSync stream) processes any archive entry that fails, the stream never emits end, finish, or close. A single failing entry, for example a hardlink whose target does not exist (one 512-byte entry), emits a TAR_ENTRY_ERROR warning and then hangs the stream. Consumers that await stream completion hang indefinitely on hostile or merely damaged input, with no error to catch be…
websocket-driver: Memory exhaustion triggered by buffering of zero-length fragmented frames
受影响: npm:websocket-driver < 0.8.1 → 0.8.1 A server accepting WebSocket connections using websocket-driver can be made to run out of memory by a client sending an indefinite stream of zero-length fragmented message frames. Details The WebSocket protocol allows messages to be delivered as a series of "fragment" frames. websocket-driver buffers all the individual fragments it receives and then concatenates them all when the final fragment is received. By sending a stream of zero-length fragment frames, a client can make the driver store a…
websocket-driver: Memory exhaustion triggered by buffering of data received after socket is closed
受影响: npm:websocket-driver < 0.8.1 → 0.8.1 A WebSocket server implemented using websocket-driver can be made to buffer data in memory indefinitely by a client that connects, sends a single close frame, and then leaves its side of the connection open while it continues to send more data over the connection. Details When used as documented, a server handles WebSocket connections by piping all bytes received over a TCP socket into the driver object provided by this library. On receipt of a WebSocket close frame, the driver emits a close ev…
Vite [beta only]: files otuside `server.fs.allow` and not included in `server.fs.deny` can be served by two requests using `?worker`
受影响: npm:vite = 8.4.0-beta.1 → 8.4.0-beta.2 > [!IMPORTANT] > This advisory only affects beta versions. Summary With 8.4.0-beta.1, the contents of files that are outside [server.fs.allow](https://vite.dev/config/server-options#server-fs-allow) and not included in [server.fs.deny](https://vite.dev/config/server-options#server-fs-deny) can be returned to the browser. Impact Only apps that match the following conditions are affected: - explicitly exposes the Vite dev server to the network (using --host or [server.host config option](https://…
Forge: RSA multi-prime private keys are read as two-prime keys, and signatures leak a factor of the modulus
受影响: npm:node-forge <= 1.4.3 → 1.4.4 pki.privateKeyFromPem() and pki.privateKeyFromAsn1() ignore the RSAPrivateKey version and the otherPrimeInfos field, so a multi-prime RSA key is read with only its first two primes. Signatures made with such a key are invalid, and each one reveals a factor of the modulus to anyone who sees it. Fixed in node-forge 1.4.4. Details RFC 8017 (A.1.2) allows RSA private keys with more than two primes: version 1, with the extra primes in otherPrimeInfos. node-forge only supports two-prime keys, but pki…
http-proxy-middleware: Unauthenticated remote gateway crash via an `Upgrade` request to a path outside `pathFilter` followed by a TCP RST (ws: true)
受影响: npm:http-proxy-middleware >= 0.8.0, < 2.0.12 → 2.0.12, npm:http-proxy-middleware >= 3.0.0-beta.0, < 3.0.11 → 3.0.11, npm:http-proxy-middleware >= 4.0.0-beta.0, < 4.2.2 → 4.2.2 Proof of concept 1. run gateway.js js import http from "http"; import { createProxyMiddleware } from "http-proxy-middleware"; const neverTrigger = () => console.log("neverTrigger"); const proxy = createProxyMiddleware({ target: "http://example.com", pathFilter: "/ws", ws: true, on: { error: neverTrigger } }); const server = http.createServer((req, res) => proxy( req, res, () => res.writeHead(404).end() )); server.on("upgrade", proxy.upgrade); server.on("error", neverTrigger); server.on("clientE…
Terser: Input sourcemap sourcesContent leaks, revealing input source code
受影响: npm:terser < 4.8.2 → 4.8.2, npm:terser >= 5.0.0, < 5.51.3 → 5.51.3 Leakage of user source code, which may include comments, constants with secret tokens, etc. When using Terser with an input sourcemap (sourceMap.content), and this input sourcemap has original source information (sourcesContent), Terser leaks this sourcesContent into the output, even when the user specified includeSources: false to opt-out. Details To help developers debug their JS applications, Terser's minify function reads and produces [source maps](https://developer.mozilla.org/en-US/docs/G…
React Router: Polynomial-time ReDoS in matchPath and matchRoutes trailing-slash handling
受影响: npm:react-router >= 6.0.0, < 7.18.3 → 7.18.3, npm:react-router >= 8.0.0, < 8.3.1 → 8.3.1 A vulnerability in React Router’s route matching may cause excessive CPU consumption when processing specially crafted paths, potentially resulting in denial of service. Affected Modes: Declarative, Data, Framework, RSC Data (unstable), and RSC Framework (unstable). Impact may occur in the browser or on the server, depending on where route matching runs.
React Router: Cross-scheme CSRF bypass in Origin validation
受影响: npm:react-router >= 7.12.0, < 7.18.3 → 7.18.3, npm:react-router >= 8.0.0, < 8.3.1 → 8.3.1 A flaw in React Router’s server-side origin validation may allow cross-site request forgery under certain deployment and session configurations, potentially enabling unauthorized actions on behalf of authenticated users. Affected Modes: Framework, RSC Data (unstable), and RSC Framework (unstable). Exploitation depends on the application’s deployment, authentication cookie configuration, and use of server-side actions.
React Router: Open redirect via tab character in redirect() paths — bypass of the CVE-2026-53669 / CVE-2026-40181 normalization
受影响: npm:react-router >= 6.4.0, < 7.18.3 → 7.18.3, npm:react-router >= 8.0.0, < 8.3.1 → 8.3.1 Improper redirect URL handling in React Router may allow applications using untrusted redirect destinations to send users to attacker-controlled websites, potentially facilitating phishing attacks. Affected Modes: Data, Framework, RSC Data (unstable), and RSC Framework (unstable). Exploitation requires an application to use attacker-controlled input as a redirect destination.
websocket-driver: Denial of service triggered by malformed Sec-WebSocket-Key1 header
受影响: npm:websocket-driver < 0.8.0 → 0.8.0 An unauthenticated remote client can trigger an instant crash and denial of service by sending a WebSocket draft76 handshake with specially crafted headers. Details The websocket-driver library supports earlier versions of the WebSocket protocol from before the RFC was standardised, particularly the draft75 and draft76 versions. The draft76 version's handshake involves the client sending two headers named Sec-WebSocket-Key1 and Sec-WebSocket-Key2. A value is derived from each of these by extrac…
websocket-driver: Message corruption and denial of service triggered by crafted client message
受影响: npm:websocket-driver < 0.8.0 → 0.8.0 An unauthenticated remote client can trigger message corruption and denial of service by starting a draft75 or draft76 WebSocket connection and sending a brief sequence of bytes. The byte sequence is parsed incorrectly and can lead to duplicate messages or server crash. Details The websocket-driver library supports earlier versions of the WebSocket protocol from before the RFC was standardised, particularly the draft75 and draft76 versions. There is a bug in the parsing of messages in these ver…
websocket-driver: Denial of service triggered by client sending a single pong frame
受影响: npm:websocket-driver < 0.8.0 → 0.8.0 An unauthenticated remote client can trigger an instant crash and denial of service by sending a WebSocket pong frame with specific content. Details This library lets a WebSocket connection send a ping frame to the remote peer and register a callback for when the corresponding pong frame is received. These callbacks are stored in a JavaScript object and indexed on the ping message content. This means the remote peer can invoke Object properties by sending a pong frame whose payload is the name…
http-proxy-middleware smuggles a second request when fixRequestBody runs before body arrival
受影响: npm:http-proxy-middleware >= 4.0.0-beta.0, <= 4.2.0 → 4.2.1, npm:http-proxy-middleware >= 3.0.5, <= 3.0.7 → 3.0.10, npm:http-proxy-middleware >= 2.0.9, <= 2.0.10 → 2.0.11 fixRequestBody treats req.readableLength === 0 as proof that a body parser consumed the request body. The same value is observed before any body byte has arrived. An unauthenticated client can therefore send the request headers first, wait one event-loop turn, and then send a body containing a complete second HTTP request. When a body-parser 1.x parser declined the declared media type, it has already assigned a truthy req.body but has not consumed the stream. fixRequestBody serializes that empt…
ws: Memory exhaustion DoS via unbounded automatic pong responses
受影响: npm:ws < 5.2.8 → 5.2.8, npm:ws >= 6.0.0, < 6.2.7 → 6.2.7, npm:ws >= 7.0.0, < 7.5.14 → 7.5.14, npm:ws >= 8.0.0, < 8.23.0 → 8.23.0 A malicious peer can flood the other peer with Ping frames while stopping reads, forcing it to buffer Pong frames that are automatically sent in response until memory is exhausted, leading to process termination due to OOM. Proof of concept js import { WebSocket, WebSocketServer } from 'ws'; const wss = new WebSocketServer({ port: 0 }, function () { const data = Buffer.alloc(125); const { port } = wss.address(); const ws = new WebSocket(ws://localhost:${port}); ws.on('open', function () { ws.pa…
minimatch: minimatch.escape() output matches more or less than the literal input
受影响: npm:minimatch >= 7.4.0, <= 11.0.7 → 11.0.8 minimatch.escape() is documented to "Escape all magic characters in a glob pattern, so that it will only ever match literal strings." (README, section minimatch.escape(pattern, options = {})). In minimatch 11.0.5 (latest release; main is at the v11.0.5 tag, commit ea0a4a6) four classes of input break that contract: 1. A leading ! is left unescaped. escape('!secret.txt') returns '!secret.txt', which is a negated pattern. It matches every path except secret.txt, for example passwd. This holds in…
minimatch: Global pattern cache retains large expansions, enabling memory exhaustion
受影响: npm:minimatch >= 11.0.3, <= 11.0.7 → 11.0.8 minimatch 11.0.3 through 11.0.7 retain the 256 most recent compiled Minimatch objects in a module-level cache. The cache is bounded only by entry count; each object can retain up to 100,000 expanded pattern rows. An application that passes untrusted, unique patterns to the top-level minimatch() function can therefore be terminated with a few very small inputs. Root cause Commit 52d2aecceb71dae7f1b19675e74e044eb472c1e6 changed minimatch() to store each compiled object in a 256-entry Map. The key…
minimatch: Quadratic compile time for long wildcard patterns (regression in 11.0.0 `mergeRows`)
受影响: npm:minimatch >= 11.0.0, <= 11.0.6 → 11.0.7 Summary. mergeRows() (src/index.ts ~813-852, introduced in 2e1d896) iterates every part position and, for each row with a wildcard there, copies and joins the whole row to build a Map key. For a pattern made of many wildcard-only path parts this is quadratic in the number of parts, even with a single row. It runs in new Minimatch, so any uncached pattern pays it. Measured on 11.0.6 with a pattern of parts joined by /: 1000 parts 22 ms, 2000 parts 72 ms, 4000 parts 190 ms, 8000 parts 805 ms (abo…
Upcoming Next.js December Security Release
Next.js is preparing a scheduled December security release for December 15, 2026.
HTML Minifier Next: Regular expressions in `minify()` cause O(n²) backtracking on ignored and custom-fragment content
受影响: npm:html-minifier-next <= 9.1.1 → 9.1.2, npm:html-minifier >= 3.1.1, < 5.0.1 → 5.0.1 html-minifier-next finds the last HTML tag inside htmlmin:ignore blocks with the expression /[\s\S] and (64 KB: about 3.3 s). Affected component and version - Repository: j9t/html-minifier-next - Affected version(s): Affected version(s): all releases up to and including 9.1.1 - Component: src/htmlminifier.js:691 (RE_LAST_HTML_TAG), :1795 (exec on htmlmin:ignore content, requires collapseWhitespace); src/htmlminifier.js:1279 (whitespace split of ignoreCustomFragments matches, default options) -…
node-forge: RSA PKCS#1 v1.5 signature forgery via extra elements in nested DigestAlgorithm
受影响: npm:node-forge <= 1.4.0 → 1.4.1 RSASSA-PKCS1-v1_5 signature verification (publicKey.verify() with the default scheme, also used by X.509 certificate and PKCS#7 verification) ignored extra elements inside the nested DigestAlgorithm SEQUENCE of the DigestInfo. For RSA keys with a low public exponent (e=3) this allows signatures to be forged for an arbitrary message without the private key. This is an incomplete fix of CVE-2026-33894. Fixed in node-forge 1.4.1. Details In lib/rsa.js, key.verify() with the default RSASSA-PKCS1-V1…
12月1日周二
React2Keys Campaign Steals 50,000 Credentials via React2Shell Exploitation
The threat actor hit over 400 organizations, stealing, validating, and stockpiling high-value credentials.
Versa Networks, Inc.のVersa Operating Systemにおける弱い認証に関する脆弱性
VOS(旧Versa FlexVNF)上のNode.jsウェブサービスは、VOSアプライアンスのURLベースのゼロタッチプロビジョニング(ZTP)に使用され、プロビジョニング完了後には不要になります。このサービスの/decryptTestエンドポイントは、server.js内でセッション認証ミドルウェアの前に登録されており、正常に復号されたトークンを受け取ると認証済みセッションを作成します。復号に使用されるキーと初期化ベクトル(IV)がすべてのVOSアプライアンスでハードコーディングされて同一であるため、ネットワークアクセスを持つ未認証の攻撃者は有効なトークンを計算し、/decryptTestに送信することで資格情報を提供せずに完全に認証されたセッションを取得できます。VersaのHubs、Branches、Controllers向けセキュリティ強化ガイドでは、VOSデバイスの初期プロビジョニング後にNode.jsウェブサービスを無効化することを推奨しています。この脆弱性は、Node.jsウェブサービスが無効化されたVOSデバイスでは悪用できません。
Versa Networks, Inc.のVersa Operating Systemにおけるハードコードされた認証情報の使用に関する脆弱性
VOS(旧称 Versa FlexVNF)のNode.jsウェブサービスは、VOSアプライアンスのURLベースのゼロタッチプロビジョニング(ZTP)に使用され、プロビジョニング完了後は不要になります。server.jsのexpress-sessionミドルウェアは、すべてのVOSアプライアンスで共通のハードコードされたシークレットで設定されており、セッションCookieの署名に使用されています。攻撃者はあらゆるソースから有効なセッションIDを入手すると、正しいHMAC-SHA256署名を計算し、サーバーが正当と認めるセッションCookieを偽造できます。このシークレットがすべてのVOSアプライアンス間で共有されているため、偽造されたCookieは展開内の任意のVOSアプライアンスで受け入れられます。Versaのハブ、ブランチ、およびコントローラー向けセキュリティ強化ガイドでは、VOSデバイスの初期プロビジョニング後にNode.jsウェブサービスを無効化することを推奨しています。この脆弱性は、Node.jsウェブサービスが無効化されているVOSデバイスでは悪用されません。
Versa Networks, Inc.のVersa Operating Systemにおける予測可能な数字や識別子の生成に関する脆弱性
VOS(旧称 Versa FlexVNF)のNode.jsウェブサービスは、VOSアプライアンスのURLベースのZero Touch Provisioning(ZTP)に使用され、プロビジョニング完了後は不要になります。このサービスはUUIDバージョン1(UUIDv1)を使用してセッション識別子を生成します。UUIDv1はシステムの日付と時刻、およびMACアドレスから生成されるため、連続する識別子はわずかにしか異ならず予測可能です。もし攻撃者がユーザーのセッションIDを予測できた場合、そのユーザーのセッションをハイジャックできる可能性があります。Versaのハブ、ブランチ、およびコントローラー向けセキュリティ強化ガイドでは、VOSデバイスの初期プロビジョニング後にNode.jsウェブサービスを無効化することを推奨しています。この脆弱性はNode.jsウェブサービスが無効化されているVOSデバイスでは悪用できません。
Versa Networks, Inc.のVersa Operating Systemにおける弱い認証に関する脆弱性
VOS(旧称 Versa FlexVNF)上の Node.js ウェブサービスは、VOSアプライアンスのURLベースのゼロタッチプロビジョニング(ZTP)に使用され、プロビジョニングが完了すると不要になります。このサービスは、初期プロビジョニング時にデフォルトの認証情報とHTTPベーシック認証を用いて、ユーザーおよび管理者をウェブインターフェースに認証します。デフォルト認証情報を知るネットワークアクセス権を持つ攻撃者は、このサービスに認証し、VOSアプライアンス上でプロビジョニング操作を実行する可能性があります。Versaのハブ、ブランチ、コントローラ向けセキュリティ強化ガイドでは、VOSデバイスの初期プロビジョニング完了後にNode.jsウェブサービスを無効化することを推奨しています。この脆弱性は、Node.jsウェブサービスが無効化されているVOSデバイスでは悪用できません。
Versa Networks, Inc.のVersa Operating SystemにおけるOS コマンドインジェクションの脆弱性
VOS(以前のVersa FlexVNF)上のNode.jsウェブサービスは、VOSアプライアンスのURLベースのゼロタッチプロビジョニング(ZTP)に使用されており、プロビジョニング完了後には不要です。このサービスの/authenticateエンドポイントは、ユーザーが入力したユーザー名とパスワードを、正規表現のメタ文字は除去するものの改行文字は除去しないサニタイザー(escapeRegExp)を経由してchild_process.exec()に渡します。認証されていない攻撃者は、ユーザー名フィールドに改行文字を挿入することで、versa OSサービスユーザー権限として任意のシェルコマンドを実行できます。認証情報は不要で、攻撃者は認証されていないページのロードから入手可能なCSRFトークンのみを必要とします。VersaのHubs、Branches、およびControllers向けセキュリティ強化ガイドでは、VOSデバイスの初期プロビジョニング後にNode.jsウェブサービスを無効にすることを推奨しています。Node.jsウェブサービスを無効にしたVOSデバイスでは、この脆弱性を悪用できません。
cross-spawn: Command injection on Windows when spawning batch files
受影响: npm:cross-spawn >= 7.0.0, < 7.1.0 → 7.1.0, npm:cross-spawn < 6.0.7 → 6.0.7 On Windows, cross-spawn runs commands that aren't executables (.exe or .com), such as batch files (.bat or .cmd), through cmd.exe, and escapes the command and its arguments for it. A batch file that forwards its arguments, e.g. with %, makes cmd.exe parse them a second time. cross-spawn only accounted for that second parse when the batch file was an npm cmd-shim located in node_modules/.bin. For any other batch file, such as npm.cmd, globally installed package shims or user batch files, a craft…
Socket.IO: Engine.IO DoS via unhandled upgrade error
受影响: npm:engine.io < 6.6.12 → 6.6.12 A Denial-of-Service (DoS) vulnerability exists in Engine.IO server due to unhandled socket errors when processing invalid upgrade requests. If a client sends an upgrade request to a non-Engine.IO path and disconnects abruptly (e.g., via ECONNRESET) before the destruction timeout fires, the socket emits an error event with no listener attached, causing the Node.js process to crash with an uncaught exception. Proof of concept js import net from "node:net"; import http from "node:http"; import { S…