Up to [cvs.NetBSD.org] / pkgsrc / www / freenginx
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
www/freenginx: update: 1.30.1 -> 1.30.2 While I'm here fix fetch echo third-party module. Sponsored by: tipi.work <ChangeLog> *) Security: one of the keys was left uninitialized when using automatic rotation of TLS session ticket keys, making it possible to forge a session and bypass client certificate verification (CVE-2026-97629); </ChangeLog>
www/freenginx: security update: ngx_http_cache_purge to 3.0.4 ChangeLog: https://github.com/nginx-modules/ngx_cache_purge/compare/3.0.2...3.0.4 Bump PKGREVISION. Sponsored by: tipi.work
www/freenginx: update njs 1.0.1 -> 1.0.2 Bump PKGREVISION. Sponsored by: tipi.work <ChangeLog> nginx modules: *) Bugfix: fixed response body framing and keepalive connection reuse in ngx.fetch(). Responses with conflicting Content-Length fields, with both Transfer-Encoding and Content-Length, or with 1xx status codes are now rejected. *) Bugfix: fixed enforcement of max_response_body_size for chunked responses in ngx.fetch(). *) Bugfix: fixed parsing of js_periodic options following worker_affinity in HTTP and Stream configurations. *) Bugfix: fixed memory leaks and false unhandled promise rejection reports when formatting rejection reasons in the QuickJS engine. Core: *) Security: fixed a memory leak when parsing malformed XML in the njs engine. Repeated malformed input could exhaust worker process memory. *) Security: fixed incomplete XML attribute values containing entity references. JavaScript accessors could return values different from those used by XML canonicalization, affecting signed XML validation. *) Feature: added XMLNode.getAttributeNS() and XMLNode.getChildNS() methods for namespace-aware attribute and child element lookup. *) Improvement: reduced compilation memory consumption in the njs engine and released temporary parser and generator data after compilation. *) Improvement: switched to constant-time HMAC signature verification in WebCrypto. *) Change: XML node mutation and canonicalization now reject detached nodes, and a removed child node has an undefined $parent. Text and attribute values must be primitive strings; null and undefined retain their deletion semantics for these values. addChild() and $tags reject source trees with namespaces. Assigning to $tag$name now throws TypeError in the QuickJS engine; deletion is still supported. *) Change: the "test262" make target was renamed to "js_test". The "test262" target now runs the official Test262 suite and requires NJS_TEST262_DIR. *) Bugfix: fixed stale XML node references after tree mutations and a crash when repeatedly modifying a node in the QuickJS engine. *) Bugfix: fixed XML node methods being hidden by child elements with matching names in the QuickJS engine. *) Bugfix: fixed XML document leaks during property existence checks in the QuickJS engine. *) Bugfix: fixed out-of-bounds reads and invalid frees when formatting unhandled promise rejection reasons in the QuickJS shell. *) Bugfix: fixed crashes and incorrect error reporting when importing modules after a failed module compilation in the njs engine. *) Bugfix: fixed oversized Buffer allocation lengths being truncated instead of rejected in the QuickJS engine. *) Bugfix: fixed use of invalidated zlib dictionary memory during argument conversion in the QuickJS engine. *) Bugfix: fixed UTC Date setters applying the local timezone offset in the njs engine. *) Bugfix: fixed Promise.any() with empty input resolving with AggregateError instead of rejecting in the njs engine. *) Bugfix: fixed excessive execution time and memory consumption in Array.prototype.sort() with huge sparse arrays in the njs engine. This closes #1095 issue on Github. *) Bugfix: fixed Array.prototype.concat() with sparse arrays in the njs engine. This closes #1095 issue on Github. *) Bugfix: fixed initialization of array literals with more than 32760 elements in the njs engine. *) Bugfix: fixed invalid memory accesses when enumerating typed arrays with Object.values() and Object.entries() in the njs engine. This closes #1098 issue on Github. *) Bugfix: fixed invalid memory accesses in Object.defineProperty() with reentrant property descriptors in the njs engine. This closes #1089 issue on Github. *) Bugfix: fixed object-to-primitive conversion when user code replaced the input value during conversion in the njs engine. This closes #1094 issue on Github. *) Bugfix: fixed memory corruption in RegExp replace and split operations with custom exec() results in the njs engine. This closes #1090, #1091, #1092, #1093, #1096, and #1097 issues on Github. *) Bugfix: fixed out-of-bounds reads in RegExp replacement with inconsistent match objects in the njs engine. Thanks to Basavaraj S m. *) Bugfix: fixed out-of-bounds reads in RegExp named capture lookup in the njs engine. This closes #1088 issue on Github. *) Bugfix: fixed parsing of for loop initializers and preservation of lexical bindings across nested declarations in the njs engine. *) Bugfix: prevented stack overflow when compiling deeply nested expressions in the njs engine by limiting recursive analysis. </ChangeLog>
www/freenginx: update njs 1.0.0 -> 1.0.1 Bump PKGREVISION. Sponsored by: tipi.work <ChangeLog> nginx modules: *) Security: fixed an access control bypass in js_access when an asynchronous request body continuation threw an exception or produced an unhandled rejection. Previously, nginx could continue processing the request as though the js_access check had succeeded. Thanks to Ta Duc Thien. *) Security: fixed a worker process crash when reading Response.statusText after an upstream server returned a status line with an empty reason phrase. *) Bugfix: fixed unhandled promise rejection tracking in reused QuickJS contexts. *) Bugfix: fixed SharedDict.pop() returning undefined for unexpired entries in shared dictionaries with a timeout. *) Bugfix: fixed validation and replacement of Fetch Headers values. This also fixed dangling header names in the QuickJS engine. *) Bugfix: fixed missing validation of r.headersOut names and values, and of redirect targets passed to r.return(). *) Bugfix: fixed use-after-free, worker aborts, and leaks caused by cyclic references involving Fetch, HTTP request, and Stream session objects in the QuickJS engine. *) Bugfix: fixed QuickJS context reuse after internal redirects and when pending jobs remained after request teardown. *) Bugfix: fixed cleanup of partially initialized JavaScript contexts when request setup failed. Core: *) Security: fixed a heap buffer overflow while parsing namespace prefix lists passed to XML exclusive canonicalization. Thanks to Vladimir Vulnerability Research Tech Lead @ Cyera, evilgensec. *) Bugfix: fixed a stack buffer overflow when exporting RSA keys larger than 4096 bits to JWK in WebCrypto. Thanks to Vaibhav Rajput. *) Bugfix: fixed RSA-OAEP encryption and decryption with SHA-256 and SHA-384 digests in WebCrypto. *) Bugfix: fixed compatibility with quickjs-ng 0.16.0 and later. *) Bugfix: fixed empty stack traces for QuickJS errors created by host callbacks. *) Feature: added btoa() and atob() global functions to the QuickJS engine and aligned their behavior between both engines. </ChangeLog>
www/freenginx: third-party modules management (+) Update cache_purge module and njs modules to their recent versions (merge changes from www/freenginx-devel). Bump PKGREVISION. Sponsored by: tipi.work
www/freenginx*: update third-party nchan module to 1.3.8 Bump PKGREVISIONs. ChangeLog: https://github.com/slact/nchan/compare/v1.3.7...v1.3.8 Sponsored by: tipi.work
www/freenginx: update njs 0.9.8 -> 0.9.9 Bump PKGREVISION. Sponsored by: tipi.work <ChangeLog> nginx modules: *) Security: a heap buffer overflow might occur in a worker process when the "js_fetch_proxy" directive value contains nginx variables derived from the client request ($http_*, $arg_*, $cookie_*, etc.) and the location's JS handler invokes ngx.fetch(). The issue was introduced in dea83189 (0.9.4). *) Feature: added js_access directive. *) Feature: added r.readRequestText(), r.readRequestArrayBuffer(), and r.readRequestJSON() - async methods that read the request body, available in js_access and js_content directives. *) Feature: added r.readRequestForm() - async method that parses the request body submitted from an HTML form (application/x-www-form-urlencoded and multipart/form-data) and returns a structured accessor object. The method is available in js_access and js_content directives. *) Feature: added jsVarNames() method. The method returns the names of variables declared with js_var. Core: *) Bugfix: fixed evaluation order of call arguments with side effects. Previously, an earlier argument could observe a later argument's mutation, e.g. f(a, a = 2) passed 2 as both arguments. The issue was introduced in fd5e523f (0.9.7). </ChangeLog>
www/freenginx: update njs 0.9.7 -> 0.9.8 Bump PKGREVISION. Sponsored by: tipi.work <ChangeLog> nginx modules: *) Bugfix: fixed loading of the built-in "crypto" module. The issue was introduced in 3185ce81 (0.9.7). </ChangeLog>
www/freenginx: sync with www/freenginx-devel - update third-party modules - enable quickjs for njs Bump PKGREVISION. Sponsored by: tipi.work
www/freenginx: update third-party njs module: 0.9.4 -> 0.9.6 Bump PKGREVISION. Sponsored by: tipi.work <ChangeLog> Changes with njs 0.9.6 03 Mar 2026 nginx modules: *) Bugfix: fixed expire field truncation in shared dict state files. Millisecond timestamps were silently truncated to 10 digits, making restored entries appear expired on restart. The issue has been present since eca03622 (0.9.1). *) Bugfix: suppressed slab log_nomem for evict shared dict zones. When evict is enabled, memory allocation failures are expected and handled by evicting old entries. *) Bugfix: fixed stack trace for native fetch exceptions for QuickJS engine. Core: *) Feature: added optional chaining support. *) Feature: added nullish coalescing assignment operator (??=). *) Feature: added logical assignment operators (||= and &&=). *) Improvement: aligned SyntaxError reporting with other JS engines. Previously, file name was a part of the error message. Now it is reported as "stack" property. *) Improvement: improved Error.stack traces. Stack traces are now attached in error constructors. Performance of Error.stack is improved by ~100 times. *) Bugfix: fixed string offset map corruption in scope values hash. The issue caused SEGV/SIGBUS crashes for multi-byte UTF-8 string constants with more than 32 characters when accessing a character at index >= 32 (e.g. via .replace() or bracket notation). The issue was introduced in e7caa46d (0.9.5). *) Bugfix: fixed heap-buffer-overflow in atom hash caused by Symbol(). *) Bugfix: fixed WebCrypto importKey() crash with mismatched JWK key type. *) Bugfix: fixed interactive mode detection for piped stdin. The issue was introduced in 4988565c (0.8.0). *) Bugfix: fixed build on MacOS. *) Bugfix: fixed PTR macro compatibility with newer BFD library. *) Bugfix: auto/cc: use portable 'command -v' instead of 'which'. Thanks to Zurab Kvachadze. Changes with njs 0.9.5 13 Jan 2026 nginx modules: *) Feature: added native module support for QuickJS engine. The following directives were added: js_load_http_native_module, js_load_stream_native_module. *) Bugfix: fixed js_body_filter with multiple chunks for QuickJS engine. *) Bugfix: fixed buffer_type inheritance in if blocks for js_body_filter. Previously, when js_body_filter was used inside an if block, the data parameter received Buffer type instead of the expected String type. *) Bugfix: fixed js_body_filter when data is not in memory. Previously, when upstream data was delivered from nginx cache, js_body_filter was not able to process it correctly. *) Bugfix: improved r.subrequest() error handling. Fixed a problem of a lost write event when the njs handler making r.subrequest() is called from a lua handler as a subrequest. Core: *) Bugfix: fixed XMLAttr object. Pointer to xmlAttr could become invalid when the parent XMLNode was modified. *) Bugfix: fixed XMLNode update. *) Bugfix: fixed ArrayBuffer with detached buffers. *) Bugfix: added missing detached array checks. *) Bugfix: fixed fs.mkdir() and friends. *) Bugfix: fixed path restoration in fs.mkdir() and friends on error. *) Bugfix: fixed missed allocation check in promise code. </ChangeLog>
www/freenginx: add new port, freenginx stable version 1.28.0