Bug 29028 - nodejs new security issues CVE-2020-7774, CVE-2021-23362, CVE-2021-27290
Summary: nodejs new security issues CVE-2020-7774, CVE-2021-23362, CVE-2021-27290
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal critical
Target Milestone: ---
Assignee: QA Team
QA Contact: Sec team
URL:
Whiteboard: MGA8-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2021-05-29 22:52 CEST by David Walser
Modified: 2021-07-25 16:46 CEST (History)
4 users (show)

See Also:
Source RPM: nodejs-14.16.0-1.mga8.src.rpm
CVE: CVE-2020-7774, CVE-2021-23362, CVE-2021-27290
Status comment:


Attachments

David Walser 2021-05-29 22:53:07 CEST

Whiteboard: (none) => MGA7TOO
Status comment: (none) => Fixed upstream in 10.24.1 and 14.16.1
CC: (none) => mageia

Comment 1 Lewis Smith 2021-05-30 20:37:35 CEST
Assigning to registered maintainer joequant.

Assignee: bugsquad => joequant

Comment 2 David Walser 2021-07-01 18:55:22 CEST
Removing Mageia 7 from whiteboard due to EOL:
https://blog.mageia.org/en/2021/06/08/mageia-7-will-reach-end-of-support-on-30th-of-june-the-king-is-dead-long-live-the-king/

Whiteboard: MGA7TOO => (none)

Comment 3 David Walser 2021-07-06 16:31:17 CEST
Upstream has issued an advisory on July 1:
https://nodejs.org/en/blog/vulnerability/july-2021-security-releases/

The issues are fixed upstream in 14.17.2:
https://nodejs.org/en/blog/release/v14.17.0/
https://nodejs.org/en/blog/release/v14.17.1/
https://nodejs.org/en/blog/release/v14.17.2/

Summary: nodejs new security issue CVE-2020-7774 => nodejs new security issues CVE-2020-7774, CVE-2021-27290, CVE-2021-23362
Status comment: Fixed upstream in 10.24.1 and 14.16.1 => Fixed upstream in 14.17.2

David Walser 2021-07-06 16:32:01 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=29231

Comment 4 Nicolas Lécureuil 2021-07-19 23:07:33 CEST
updating mga8 to 14.17.3
Comment 5 Nicolas Lécureuil 2021-07-20 11:17:10 CEST
New LTS version pushed:

src:
    - nodejs-14.17.3-1.mga8

Assignee: joequant => qa-bugs

Comment 6 David Walser 2021-07-20 13:50:23 CEST
Reference for 14.17.3 (fixed a Windows-only issue):
https://nodejs.org/en/blog/release/v14.17.3/

nodejs-14.17.3-1.mga8
nodejs-docs-14.17.3-1.mga8
nodejs-libs-14.17.3-1.mga8
nodejs-devel-14.17.3-1.mga8
v8-devel-8.4.371.23.mga8-1.mga8
npm-6.14.13-1.14.17.3.1.mga8

from nodejs-14.17.3-1.mga8.src.rpm

Status comment: Fixed upstream in 14.17.2 => (none)

Comment 7 Aurelien Oudelet 2021-07-20 22:16:50 CEST
Advisory:
========================

Updated nodejs packages fix security vulnerabilities:

This affects the package y18n before 3.2.2, 4.0.1 and 5.0.5. PoC by po6ix: const y18n = require('y18n')(); y18n.setLocale('__proto__'); y18n.updateLocale({polluted: true}); console.log(polluted); // true (CVE-2020-7774).

The package hosted-git-info before 3.0.8 are vulnerable to Regular Expression Denial of Service (ReDoS) via regular expression shortcutMatch in the fromUrl function in index.js. The affected regular expression exhibits polynomial worst-case time complexity (CVE-2021-23362).

ssri 5.2.2-8.0.0, fixed in 8.0.1, processes SRIs using a regular expression which is vulnerable to a denial of service. Malicious SRIs could take an extremely long time to process, leading to denial of service. This issue only affects consumers using the strict option (CVE-2021-27290).

Theses issues are fixed by upgrading nodejs packages to latest available LTS 14.17.3 version. See upstream releases notes for other included bugfixes.

References:
 - https://bugs.mageia.org/show_bug.cgi?id=29028
 - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7774
 - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23362
 - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-27290
 - https://nodejs.org/en/blog/release/v14.17.0/
 - https://nodejs.org/en/blog/release/v14.17.1/
 - https://nodejs.org/en/blog/release/v14.17.2/
 - https://nodejs.org/en/blog/release/v14.17.3/
 - https://nodejs.org/en/blog/vulnerability/july-2021-security-releases/
 - https://nodejs.org/en/blog/vulnerability/april-2021-security-releases/
 - https://nodejs.org/en/blog/release/v14.16.1/
 - https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/TE6GHYMCD4SLCPTFPANLIYWCPHXC4G5T/
========================

Updated packages in core/updates_testing:
========================
nodejs-14.17.3-1.mga8
nodejs-docs-14.17.3-1.mga8
nodejs-libs-14.17.3-1.mga8
nodejs-devel-14.17.3-1.mga8
v8-devel-8.4.371.23.mga8-1.mga8
npm-6.14.13-1.14.17.3.1.mga8

from nodejs-14.17.3-1.mga8.src.rpm

CC: (none) => ouaurelien

Comment 8 Herman Viaene 2021-07-24 14:48:48 CEST
MGA8-64 Plasma on Lenovo B50
No installation issues
Ref bug 21330 Comment 51 for test
$ cd Documenten/
[tester8@mach5 Documenten]$ node main.js 
Server running at http://127.0.0.1:8081/
Then pointing browser to it displays "Hello world"
OK for me.

Whiteboard: (none) => MGA8-64-OK
CC: (none) => herman.viaene

Comment 9 Aurelien Oudelet 2021-07-25 12:33:48 CEST
Validating.

CC: (none) => sysadmin-bugs
Summary: nodejs new security issues CVE-2020-7774, CVE-2021-27290, CVE-2021-23362 => nodejs new security issues CVE-2020-7774, CVE-2021-23362, CVE-2021-27290
Keywords: (none) => advisory, validated_update
CVE: (none) => CVE-2020-7774, CVE-2021-23362, CVE-2021-27290

Comment 10 Mageia Robot 2021-07-25 16:46:24 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2021-0372.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.