CVE-2021-44667 Cross-site Scripting in Nacos

Medium 6.1 Published Updated

An attacker can inject malicious scripts via pageSize and pageNo parameters in Nacos auth/users, potentially leading to session hijacking or code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-44667?

CVE-2021-44667 is a medium-severity cross-site scripting vulnerability in n/a, published on 11 Mar 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A Cross Site Scripting (XSS) vulnerability exists in Nacos 2.0.3 in auth/users via the (1) pageSize and (2) pageNo parameters.

Weakness: CWE-79

Which versions are affected by CVE-2021-44667?

4 open source packages ship an affected version, including com.alibaba.nacos:nacos-common. It affects 1 product.

PackageAffectedFixed in
com.alibaba.nacos:nacos-common MavenAll versions1.4.5
com.alibaba.nacos:nacos-common MavenAll versions1.4.5
com.alibaba.nacos:nacos-common MavenFrom 2.0.0-ALPHA.12.1.0-BETA
com.alibaba.nacos:nacos-common MavenFrom 2.0.0-ALPHA.12.1.0-BETA

Products include Alibaba Nacos.

How do I fix CVE-2021-44667?

Upgrade com.alibaba.nacos:nacos-common to a fixed version for your release line: 1.4.5 or 2.1.0-BETA.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2021-44667 being exploited?

There is no known exploitation of CVE-2021-44667 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-4gr7-qw2q-jxh6.

Is CVE-2021-44667 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free