From 4a6bcd0d8d0e1f268ad12479e3f5f04de25c62ff Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Wed, 18 Jan 2023 17:37:37 -0300 Subject: [PATCH] build: build ICU with ICU_NO_USER_DATA_OVERRIDE Backport-PR-URL: https://github.com/nodejs-private/node-private/pull/378 CVE-ID: CVE-2023-23920 PR-URL: https://github.com/nodejs-private/node-private/pull/374 Refs: https://hackerone.com/bugs?subject=nodejs&report_id=1625036 Reviewed-By: Ben Noordhuis Reviewed-By: Richard Lau Reviewed-By: Michael Dawson --- configure.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.py b/configure.py index d3192ca04ca..1d0a1741ce4 100755 --- a/configure.py +++ b/configure.py @@ -1653,6 +1653,9 @@ def icu_download(path): # always set icu_small, node.gyp depends on it being defined. o['variables']['icu_small'] = b(False) + # prevent data override + o['defines'] += ['ICU_NO_USER_DATA_OVERRIDE'] + with_intl = options.with_intl with_icu_source = options.with_icu_source have_icu_path = bool(options.with_icu_path)