Commit Graph

53 Commits

Author SHA1 Message Date
Hirokazu MORIKAWA da967b7536 node: bump to 14.18.1 / October 12th 2021 Security Releases
October 12th 2021 Security Releases:
 HTTP Request Smuggling due to spaced in headers (Medium)(CVE-2021-22959)
 HTTP Request Smuggling when parsing the body (Medium)(CVE-2021-22960)

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2021-10-14 16:22:53 -07:00
Hirokazu MORIKAWA cee32c84af node: bump to 14.17.4
July 2021 Security Releases:

Use after free on close http2 on stream canceling (High) (CVE-2021-22930)
Node.js is vulnerable to a use after free attack where an attacker might be able to exploit the memory corruption, to change process behavior.
You can read more about it in https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22930

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2021-07-31 11:28:02 +09:00
Hirokazu MORIKAWA 14b43da6bd node: bump to 14.17.1
Notable Changes:
deps: update ICU to 69.1 (Michaël Zasso)
errors: align source-map stacks with spec (Benjamin Coe)

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2021-06-18 18:04:29 +09:00
Hirokazu MORIKAWA 3aefe1d8b6 node: Reduce node-npm package size
Reduce package size by about 1MB.

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2021-05-28 13:04:48 +09:00
Hirokazu MORIKAWA 74521b2876 node: bump to v14.17.0
Notable Changes:
Diagnostics channel (experimental module)
UUID support in the crypto module
Experimental support for AbortController and AbortSignal

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2021-05-13 13:19:24 +09:00
Hirokazu MORIKAWA f6feb1508c node: Resolve ICU conflict
Resolve conflicts between OpenWrt's ICU package and the ICU shipped with node.js.

https://github.com/openwrt/packages/issues/15437

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2021-04-21 19:26:12 +03:00
Hirokazu MORIKAWA 21391a6c9c node: bump to v14.16.1
April 2021 Security Releases
- OpenSSL - CA certificate check bypass with X509_V_FLAG_X509_STRICT (High) (CVE-2021-3450)
- OpenSSL - NULL pointer deref in signature_algorithms processing (High) (CVE-2021-3449)
- npm upgrade - Update y18n to fix Prototype-Pollution (High) (CVE-2020-7774)

OpenSSL-related vulnerabilities do not affect the OpenWrt package. Because OpenWrt's OpenSSL shared library has been updated.

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2021-04-11 20:29:48 -07:00
Robin Rainton 8695a18c56 node: #14983 NODEJS_ICU_SMALL is default
Signed-off-by: Robin Rainton <robin@rainton.com>
2021-04-11 13:39:24 +02:00
Hirokazu MORIKAWA a68820bb74 node: bump to v14.16.0
Update to v14.16.0

February 2021 Security Releases
- HTTP2 'unknownProtocol' cause Denial of Service by resource exhaustion (Critical) (CVE-2021-22883)
- DNS rebinding in --inspect (CVE-2021-22884)
- OpenSSL - Integer overflow in CipherUpdate (CVE-2021-23840)

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2021-02-26 09:02:24 +09:00
Hirokazu MORIKAWA 884761c4df node: make hostpkg icu-enabled
Made the necessary changes to build the latest version of adguardhome.
See this thread : https://github.com/openwrt/packages/pull/14717

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2021-02-17 10:30:56 +09:00
Hirokazu MORIKAWA 4d7fe6ac7c node: update to v14.15.5
Description:
Update to v14.15.5
upgrade npm to 6.14.11

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2021-02-12 11:48:57 +09:00
Hirokazu MORIKAWA 9fc1360899 node: update to v14.15.4
January 2021 Security Releases:
use-after-free in TLSWrap (High) (CVE-2020-8265)
HTTP Request Smuggling in nodejs (Low) (CVE-2020-8287)

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2021-01-11 07:52:45 +09:00
Hirokazu MORIKAWA 4fea76cc01 node: update to v14.15.3
Maintainer: me @ianchi
Compile tested: head r15324-920b692, aarch64, x86_64
Run tested: (qemu 5.2.0) aarch64, x86_64

Description:
Update to v14.15.3

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2020-12-24 15:23:40 +09:00
Hirokazu MORIKAWA 2aa5671e67 node: update to v14.15.1
Update to v14.15.1

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2020-12-10 14:51:08 +09:00
Hirokazu MORIKAWA 86e5f1baa9 node: update to v12.20.0
Update to v12.20.0
Take over maintainership from John Crispin

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2020-11-27 08:58:31 +09:00
Hirokazu MORIKAWA 4e525af414 node: update to v12.19.0
Update to v12.19.0
Fixes for the removal of MIPS FPU emulator support.

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2020-11-08 16:00:12 +09:00
Hirokazu MORIKAWA c788ba095a node: update to v12.18.4
Vulnerabilities fixed:
* CVE-2020-8201: HTTP Request Smuggling due to CR-to-Hyphen conversion (High).
* CVE-2020-8252: fs.realpath.native on may cause buffer overflow (Medium).

Imported patches from the debian package.

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2020-09-16 09:32:42 +09:00
Hirokazu MORIKAWA 6aef6e043b node: update to v12.18.3
upgrade npm to 6.14.6
update openssl to 1.1.1g

Vulnerabilities fixed:
* CVE-2020-8172: TLS session reuse can lead to host certificate verification bypass (High).
* CVE-2020-11080: HTTP/2 Large Settings Frame DoS (Low).
* CVE-2020-8174: napi_get_value_string_*() allows various kinds of memory corruption (High).

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2020-07-30 11:34:13 +09:00
Hirokazu MORIKAWA a0a18df42c node: Change icu version specification
modify host icu library path

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2020-03-24 13:26:34 +09:00
Hirokazu MORIKAWA e95c498f3a node: update to v12.16.1
Add some new APIs
V8 was updated to 7.8.279.23. This includes performance improvements to object
destructuring, RegExp match failures and WebAssembly startup time.

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2020-02-21 12:28:53 +09:00
Hirokazu MORIKAWA ffd3def400 node: update to v12.15.0
Update to v12.15.0
Support Python3 : https://github.com/openwrt/packages/issues/8893
Preparing to deprecate nosnapshot builds.

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2020-02-06 15:52:40 +09:00
Hirokazu MORIKAWA 81bccf9068 node: fix http/2 DoS
This is a security release.

Node.js, as well as many other implementations of HTTP/2,
have been found
vulnerable to Denial of Service attacks.
See https://github.com/Netflix/security-bulletins/blob/master/advisories/third-party/2019-002.md
for more information.

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2019-08-16 11:23:47 +09:00
Hirokazu MORIKAWA c69d5a0241 node: fix host build error on macOS
fix host build error on macOS
reference: https://github.com/openwrt/packages/issues/9616

Related: https://github.com/openwrt/packages/issues/7171
(This correspondence is necessary to build with macOS.)

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2019-08-01 16:43:13 +09:00
Hirokazu MORIKAWA 192cd0e792 node: add mips64 support
see: https://github.com/openwrt/packages/pull/8796

And remove uclibc depends

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2019-05-10 15:03:33 +09:00
Eneas U de Queiroz 8c1d86baad
node: don't build on unsupported cpus, remove menu
Node does not support arc or armeb systems.
Moved i18 option to straight under node instead of on its own menu.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-04-26 21:11:12 -03:00
Hirokazu MORIKAWA 6e5bc6d383 node: update to 8.16.0
Update to v8.16.0

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2019-04-19 15:03:03 +09:00
Hirokazu MORIKAWA af0a02b8df node: support ppc32 musl
support powerpc32 musl
https://downloads.openwrt.org/snapshots/faillogs/powerpc_464fp/packages/node/compile.txt

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2019-04-15 09:52:05 +09:00
Hirokazu MORIKAWA 6d943db9b0 node: bump to 8.15.1
Several security fixes:
Node.js: Slowloris HTTP Denial of Service with keep-alive (CVE-2019-5737)
OpenSSL: 0-byte record padding oracle (CVE-2019-1559)

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2019-04-11 10:50:21 +09:00
Rosen Penev 2a758a1c68 node: Update to 8.14.1
Mainly CVE fixes.

Added a patch to fix compilation without deprecated OpenSSL APIs.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-12-24 10:12:50 +08:00
Eneas U de Queiroz fc4bc242cc node: use system libnghttp2 libuv libhttp-parser
Use the openwrt system libraries instead of the ones bundled with node.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2018-12-24 10:12:50 +08:00
Rosen Penev 4173bf47e2 node: Update to 8.12.0
Fixes several CVEs.

Added PKG_CPE_ID for proper CVE tracking.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-11-14 20:56:01 -08:00
Hirokazu MORIKAWA 9ce4d5191f node: bump to 8.11.3
Update to v8.11.3 Several security fixes:
CVE-2018-7167, CVE-2018-7161, CVE-2018-1000168,CVE-2018-7158, CVE-2018-7159, CVE-2018-7160

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2018-07-03 10:32:43 +08:00
Hirokazu MORIKAWA 3482320c2a node: Fix incorrect detection of arm_version and arm_fpu
Automatic detection of the arm architecture does not work well.

http://downloads.lede-project.org/snapshots/faillogs/arm_arm1176jzf-s_vfp/packages/node/compile.txt

```
../deps/v8/src/arm/assembler-arm.cc:176:2: error: #error "CAN_USE_ARMV7_INSTRUCTIONS should match CAN_USE_VFP3_INSTRUCTIONS"
 #error "CAN_USE_ARMV7_INSTRUCTIONS should match CAN_USE_VFP3_INSTRUCTIONS"
   ^~~~~
```

https://github.com/openwrt/packages/issues/5728

Explicitly set cpu arch optimization flag to the compiler option so that "configure" script correctly identifies "arm version".

(Raspberry Pi Zero W)
Raspbian:
```
raspberrypi:~ $ echo | gcc -dM -E - | grep ARM_ARCH
```
OpenWrt (cross-env):
```
ubuntu:~ $ echo | ./arm-openwrt-linux-muslgnueabi-gcc -dM -E - | grep ARM_ARCH
```
```
ubuntu:~ $ echo | ./arm-openwrt-linux-muslgnueabi-gcc -mcpu=arm1176jzf-s -dM -E - | grep ARM_ARCH
```

Also specifying an option lines compactly.

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2018-05-17 15:16:52 +09:00
Hirokazu MORIKAWA 818770d273 node: fix host build fail
modify patch.
 https://github.com/nodejs/node/pull/19196

made not to use libressl headers
 fix to include path not to use "host/include"

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2018-05-16 10:02:53 +08:00
Marko Ratkaj cff6ebb809 node: bump to 8.10.0
Changes:
Version bump to 8.10.0
Refreshed patches
Added npx install
Added 004-node_crypto-remove-std.patch

Additional patch fixes node_cypto compile failure:
./src/node_crypto.cc:5626:32: error: expected unqualified-id before '('

Signed-off-by: Arturo Rinaldi <arty.net2@gmail.com>
Signed-off-by: Marko Ratkaj <marko.ratkaj@sartura.hr>
2018-03-10 13:42:52 +08:00
Yousong Zhou ffbdc7e4fd node: depends on availability of fpu
It requires either hardware or software emulated fpu, otherwise program
can fail with SIGILL for fp instructions emitted by the JIT compiler

See #1937, #2633, #2442, FS#1257 for details

From code snippet at deps/v8/src/mips/constants-mips.h

    #elif(defined(__mips_soft_float) && __mips_soft_float != 0)
    // This flag is raised when -msoft-float is passed to the compiler.
    // // Although FPU is a base requirement for v8, soft-float ABI is used
    // // on soft-float systems with FPU kernel emulation.
    // const bool IsMipsSoftFloatABI = true;

[1] https://bugs.chromium.org/p/v8/issues/detail?id=4704

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-02-09 15:47:50 +08:00
Hirokazu MORIKAWA 5a607c58a0 node: fix typo
https://github.com/openwrt/packages/issues/4742

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2017-09-07 10:17:03 +09:00
Adrian Panella 162c6a70c9 node: bump version and add maintainer
Signed-off-by: Adrian Panella <ianchi74@outlook.com>
2017-08-16 21:02:35 -05:00
Adrian Panella 653e9ff9ac node: bump version and tweak config
Bump version to 6.11.0
Add ICU dependency when using i18n
Tweak fpu configs

Signed-off-by: Adrian Panella <ianchi74@outlook.com>
2017-08-16 21:02:35 -05:00
Ygal Blum 18e816d5fd node: Move NPM into a separated pacakge
In order to reduce flash requirements and also to disallow running NPM on the target
move NPM out of the default NodeJS package.
In order to allow adding NPM via opkg install, move it to a separated
directory

Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
2017-04-06 10:15:32 +03:00
Matthias Schiffer 4a984a8d60
treewide: replace $(STAGING_DIR)/host and $(HOST_BUILD_PREFIX) with $(STAGING_DIR_HOSTPKG)
As both LEDE and OpenWrt have STAGING_DIR_HOSTPKG now, we can start to rely
on it. See 73b7f55424 for more information on
STAGING_DIR_HOSTPKG.

STAGING_DIR_HOSTPKG won't actually be changed before the first LEDE release
(it is equivalent to $(STAGING_DIR)/host), so this simple search/replace
cleanup is safe to apply. Doing this cleanup now will be useful for the
Gluon project (an OpenWrt/LEDE based firmware framework) for experimenting
with modifying STAGING_DIR_HOSTPKG before doing this in the LEDE upstream.

Also fixes a typo in the dbus Makefile ("STAGIND_DIR").

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2017-01-10 18:25:54 +01:00
John Crispin 844638d519 Merge pull request #3056 from plntyk/fix_node
node: fix soft/hard float compile on arm/mips
2016-10-04 09:13:11 +02:00
Matthias Schiffer 0da71b8f85
node: use default host install prefix
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-10-04 05:02:09 +02:00
Dirk Neukirchen bc86e32d43 node: fix soft/hard float compile on arm/mips
reported by brcm2708/2709 user on IRC

Signed-off-by: Dirk Neukirchen <plntyk.lede@plntyk.name>
2016-08-13 18:58:47 +02:00
Hirokazu MORIKAWA 865f44ef77 node,node-*: node update to v4.4.5 and Enhance CPU-arch variant. 2016-05-27 16:22:39 +09:00
Matthias Schiffer 9125c3615f
node: update to v4.4.4
While we're at it, also enable parallel builds.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-05-09 16:21:44 +02:00
Hirokazu MORIKAWA 5a118cda9e node update v0.12.13 2016-04-21 16:43:14 +09:00
Felix Fietkau 9f8e5aca34 treewide: use $(STAGING_DIR)/host instead of $(STAGING_DIR_HOST), sync with changes in trunk
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2016-01-20 21:56:03 +01:00
Alexandru Ardelean e5ca27a97c node: fix build on x86 & x86.64 targets
For x86 and x86_64, nodejs has some special CPU
code that needs to be selected by specifying
the correct CPU name (correct for nodejs).

On OpenWRT x86 is i386 ; node wants ia32 for this.
And x86_64 is x64 on nodejs.

So, we just need to do the proper substitutions.

Note: the ARCH env-var is obtained from CONFIG_ARCH, after
some subtitutions are applied.
So, it shouldn't affect other target archs.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2015-12-19 18:23:23 +02:00
Matthias Schiffer 659719005e node: add python/host to HOST_BUILD_DEPENDS as well
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2015-10-28 01:10:09 +01:00