Skip to content
OpenAdvisories
Critical · 9.4 CVE-2021-31597 EUVD-2021-0980GHSA-72mh-269x-7mh5

Improper Certificate Validation in xmlhttprequest-ssl

Published Apr 22, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

The xmlhttprequest-ssl package before 1.6.1 for Node.js disables SSL certificate validation by default, because rejectUnauthorized (when the property exists but is undefined) is considered to be false within the https.request function of Node.js. In other words, no certificate is ever rejected.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS node-xmlhttprequest-ssl No fix yet —
Ubuntu 18.04 LTS node-xmlhttprequest-ssl No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 js-jquery No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm xmlhttprequest-ssl < 1.6.1 1.6.1 GHSA-72mh-269x-7mh5

Advisories 1

References