{"id":"ALPINE-CVE-2021-22884","details":"Node.js before 10.24.0, 12.21.0, 14.16.0, and 15.10.0 is vulnerable to DNS rebinding attacks as the whitelist includes “localhost6”. When “localhost6” is not present in /etc/hosts, it is just an ordinary domain that is resolved via DNS, i.e., over network. If the attacker controls the victim's DNS server or can spoof its responses, the DNS rebinding protection can be bypassed by using the “localhost6” domain. As long as the attacker uses the “localhost6” domain, they can still apply the attack described in CVE-2018-7160.","modified":"2026-03-09T01:19:22.098141Z","published":"2021-03-03T18:15:14.957Z","upstream":["CVE-2021-22884"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2021-22884"}],"affected":[{"package":{"name":"nodejs","ecosystem":"Alpine:v3.11","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.21.0-r0"}]}],"versions":["10.13.0-r0","10.14.0-r0","10.14.1-r0","10.14.2-r0","10.15.1-r0","10.15.3-r0","10.16.0-r0","10.16.1-r0","10.16.2-r0","10.16.3-r0","12.13.0-r0","12.13.0-r1","12.13.1-r0","12.14.0-r0","12.15.0-r0","12.15.0-r1","12.20.1-r0","4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.11.0-r0","8.11.0-r1","8.11.1-r0","8.11.1-r1","8.11.1-r2","8.11.2-r0","8.11.3-r0","8.11.3-r1","8.11.3-r2","8.11.3-r3","8.11.4-r0","8.12.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-22884.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.12","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.21.0-r0"}]}],"versions":["10.13.0-r0","10.14.0-r0","10.14.1-r0","10.14.2-r0","10.15.1-r0","10.15.3-r0","10.16.0-r0","10.16.1-r0","10.16.2-r0","10.16.3-r0","12.13.0-r0","12.13.0-r1","12.13.1-r0","12.14.0-r0","12.14.1-r0","12.15.0-r0","12.15.0-r1","12.15.0-r2","12.16.2-r0","12.16.3-r0","12.16.3-r1","12.17.0-r0","12.18.3-r0","12.18.4-r0","12.19.0-r0","12.20.1-r0","4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.11.0-r0","8.11.0-r1","8.11.1-r0","8.11.1-r1","8.11.1-r2","8.11.2-r0","8.11.3-r0","8.11.3-r1","8.11.3-r2","8.11.3-r3","8.11.4-r0","8.12.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-22884.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.13","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.16.0-r0"}]}],"versions":["10.13.0-r0","10.14.0-r0","10.14.1-r0","10.14.2-r0","10.15.1-r0","10.15.3-r0","10.16.0-r0","10.16.1-r0","10.16.2-r0","10.16.3-r0","12.13.0-r0","12.13.0-r1","12.13.1-r0","12.14.0-r0","12.14.1-r0","12.15.0-r0","12.15.0-r1","12.15.0-r2","12.16.2-r0","12.16.3-r0","12.16.3-r1","12.17.0-r0","12.18.0-r0","12.18.0-r1","12.18.0-r2","12.18.2-r0","12.18.3-r0","12.18.4-r0","12.19.0-r0","14.15.1-r0","14.15.3-r0","14.15.3-r1","14.15.3-r2","14.15.4-r0","14.15.5-r0","4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.11.0-r0","8.11.0-r1","8.11.1-r0","8.11.1-r1","8.11.1-r2","8.11.2-r0","8.11.3-r0","8.11.3-r1","8.11.3-r2","8.11.3-r3","8.11.4-r0","8.12.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-22884.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.16.0-r0"}]}],"versions":["10.13.0-r0","10.14.0-r0","10.14.1-r0","10.14.2-r0","10.15.1-r0","10.15.3-r0","10.16.0-r0","10.16.1-r0","10.16.2-r0","10.16.3-r0","12.13.0-r0","12.13.0-r1","12.13.1-r0","12.14.0-r0","12.14.1-r0","12.15.0-r0","12.15.0-r1","12.15.0-r2","12.16.2-r0","12.16.3-r0","12.16.3-r1","12.17.0-r0","12.18.0-r0","12.18.0-r1","12.18.0-r2","12.18.2-r0","12.18.3-r0","12.18.4-r0","12.19.0-r0","14.15.1-r0","14.15.3-r0","14.15.3-r1","14.15.3-r2","14.15.4-r0","14.15.5-r0","4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.11.0-r0","8.11.0-r1","8.11.1-r0","8.11.1-r1","8.11.1-r2","8.11.2-r0","8.11.3-r0","8.11.3-r1","8.11.3-r2","8.11.3-r3","8.11.4-r0","8.12.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-22884.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.16.0-r0"}]}],"versions":["10.13.0-r0","10.14.0-r0","10.14.1-r0","10.14.2-r0","10.15.1-r0","10.15.3-r0","10.16.0-r0","10.16.1-r0","10.16.2-r0","10.16.3-r0","12.13.0-r0","12.13.0-r1","12.13.1-r0","12.14.0-r0","12.14.1-r0","12.15.0-r0","12.15.0-r1","12.15.0-r2","12.16.2-r0","12.16.3-r0","12.16.3-r1","12.17.0-r0","12.18.0-r0","12.18.0-r1","12.18.0-r2","12.18.2-r0","12.18.3-r0","12.18.4-r0","12.19.0-r0","14.15.1-r0","14.15.3-r0","14.15.3-r1","14.15.3-r2","14.15.4-r0","14.15.5-r0","4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.11.0-r0","8.11.0-r1","8.11.1-r0","8.11.1-r1","8.11.1-r2","8.11.2-r0","8.11.3-r0","8.11.3-r1","8.11.3-r2","8.11.3-r3","8.11.4-r0","8.12.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-22884.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.16.0-r0"}]}],"versions":["10.13.0-r0","10.14.0-r0","10.14.1-r0","10.14.2-r0","10.15.1-r0","10.15.3-r0","10.16.0-r0","10.16.1-r0","10.16.2-r0","10.16.3-r0","12.13.0-r0","12.13.0-r1","12.13.1-r0","12.14.0-r0","12.14.1-r0","12.15.0-r0","12.15.0-r1","12.15.0-r2","12.16.2-r0","12.16.3-r0","12.16.3-r1","12.17.0-r0","12.18.0-r0","12.18.0-r1","12.18.0-r2","12.18.2-r0","12.18.3-r0","12.18.4-r0","12.19.0-r0","14.15.1-r0","14.15.3-r0","14.15.3-r1","14.15.3-r2","14.15.4-r0","14.15.5-r0","4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.11.0-r0","8.11.0-r1","8.11.1-r0","8.11.1-r1","8.11.1-r2","8.11.2-r0","8.11.3-r0","8.11.3-r1","8.11.3-r2","8.11.3-r3","8.11.4-r0","8.12.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-22884.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.16.0-r0"}]}],"versions":["10.13.0-r0","10.14.0-r0","10.14.1-r0","10.14.2-r0","10.15.1-r0","10.15.3-r0","10.16.0-r0","10.16.1-r0","10.16.2-r0","10.16.3-r0","12.13.0-r0","12.13.0-r1","12.13.1-r0","12.14.0-r0","12.14.1-r0","12.15.0-r0","12.15.0-r1","12.15.0-r2","12.16.2-r0","12.16.3-r0","12.16.3-r1","12.17.0-r0","12.18.0-r0","12.18.0-r1","12.18.0-r2","12.18.2-r0","12.18.3-r0","12.18.4-r0","12.19.0-r0","14.15.1-r0","14.15.3-r0","14.15.3-r1","14.15.3-r2","14.15.4-r0","14.15.5-r0","4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.11.0-r0","8.11.0-r1","8.11.1-r0","8.11.1-r1","8.11.1-r2","8.11.2-r0","8.11.3-r0","8.11.3-r1","8.11.3-r2","8.11.3-r3","8.11.4-r0","8.12.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-22884.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.16.0-r0"}]}],"versions":["10.13.0-r0","10.14.0-r0","10.14.1-r0","10.14.2-r0","10.15.1-r0","10.15.3-r0","10.16.0-r0","10.16.1-r0","10.16.2-r0","10.16.3-r0","12.13.0-r0","12.13.0-r1","12.13.1-r0","12.14.0-r0","12.14.1-r0","12.15.0-r0","12.15.0-r1","12.15.0-r2","12.16.2-r0","12.16.3-r0","12.16.3-r1","12.17.0-r0","12.18.0-r0","12.18.0-r1","12.18.0-r2","12.18.2-r0","12.18.3-r0","12.18.4-r0","12.19.0-r0","14.15.1-r0","14.15.3-r0","14.15.3-r1","14.15.3-r2","14.15.4-r0","14.15.5-r0","4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.11.0-r0","8.11.0-r1","8.11.1-r0","8.11.1-r1","8.11.1-r2","8.11.2-r0","8.11.3-r0","8.11.3-r1","8.11.3-r2","8.11.3-r3","8.11.4-r0","8.12.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-22884.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.16.0-r0"}]}],"versions":["10.13.0-r0","10.14.0-r0","10.14.1-r0","10.14.2-r0","10.15.1-r0","10.15.3-r0","10.16.0-r0","10.16.1-r0","10.16.2-r0","10.16.3-r0","12.13.0-r0","12.13.0-r1","12.13.1-r0","12.14.0-r0","12.14.1-r0","12.15.0-r0","12.15.0-r1","12.15.0-r2","12.16.2-r0","12.16.3-r0","12.16.3-r1","12.17.0-r0","12.18.0-r0","12.18.0-r1","12.18.0-r2","12.18.2-r0","12.18.3-r0","12.18.4-r0","12.19.0-r0","14.15.1-r0","14.15.3-r0","14.15.3-r1","14.15.3-r2","14.15.4-r0","14.15.5-r0","4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.11.0-r0","8.11.0-r1","8.11.1-r0","8.11.1-r1","8.11.1-r2","8.11.2-r0","8.11.3-r0","8.11.3-r1","8.11.3-r2","8.11.3-r3","8.11.4-r0","8.12.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-22884.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.16.0-r0"}]}],"versions":["10.13.0-r0","10.14.0-r0","10.14.1-r0","10.14.2-r0","10.15.1-r0","10.15.3-r0","10.16.0-r0","10.16.1-r0","10.16.2-r0","10.16.3-r0","12.13.0-r0","12.13.0-r1","12.13.1-r0","12.14.0-r0","12.14.1-r0","12.15.0-r0","12.15.0-r1","12.15.0-r2","12.16.2-r0","12.16.3-r0","12.16.3-r1","12.17.0-r0","12.18.0-r0","12.18.0-r1","12.18.0-r2","12.18.2-r0","12.18.3-r0","12.18.4-r0","12.19.0-r0","14.15.1-r0","14.15.3-r0","14.15.3-r1","14.15.3-r2","14.15.4-r0","14.15.5-r0","4.4.3-r0","4.4.4-r0","4.4.5-r0","4.4.7-r0","4.5.0-r0","6.10.0-r0","6.10.1-r0","6.10.3-r0","6.11.0-r0","6.11.1-r0","6.11.1-r1","6.11.1-r2","6.11.2-r0","6.11.3-r0","6.11.4-r0","6.11.5-r0","6.9.1-r0","6.9.1-r1","6.9.2-r0","6.9.4-r0","6.9.4-r1","6.9.5-r0","6.9.5-r1","8.10.0-r0","8.11.0-r0","8.11.0-r1","8.11.1-r0","8.11.1-r1","8.11.1-r2","8.11.2-r0","8.11.3-r0","8.11.3-r1","8.11.3-r2","8.11.3-r3","8.11.4-r0","8.12.0-r0","8.9.0-r0","8.9.1-r0","8.9.2-r0","8.9.3-r0","8.9.3-r1","8.9.4-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-22884.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.16.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-22884.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.16.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-22884.json"}},{"package":{"name":"nodejs","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/nodejs?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.16.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-22884.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}