CVE-2022-4521 WSO2 carbon-registry Request Parameter cross site scripting

Low 3.5 Published Updated

Remote attackers can inject malicious scripts via request parameters in WSO2 carbon-registry, potentially executing code in user sessions.

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

What is CVE-2022-4521?

CVE-2022-4521 is a low-severity cross-site scripting vulnerability in WSO2 carbon-registry, published on 15 Dec 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

A vulnerability classified as problematic has been found in WSO2 carbon-registry up to 4.8.6. This affects an unknown part of the component Request Parameter Handler. The manipulation of the argument parentPath/path/username/path/profile_menu leads to cross site scripting. It is possible to initiate the attack remotely. Upgrading to version 4.8.7 is able to address this issue. The name of the patch is 9f967abfde9317bee2cda469dbc09b57d539f2cc. It is recommended to upgrade the affected component. The identifier VDB-215901 was assigned to this vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2022-4521?

2 open source packages ship an affected version, including org.wso2.carbon.registry:carbon-registry. It affects 1 product.

PackageAffectedFixed in
org.wso2.carbon.registry:carbon-registry MavenAll versions4.8.7
org.wso2.carbon.registry:carbon-registry MavenAll versions4.8.7

Products include Wso2 Carbon-Registry.

How do I fix CVE-2022-4521?

Upgrade org.wso2.carbon.registry:carbon-registry to 4.8.7 or later.

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-2022-4521 being exploited?

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

Sources

Also known as GHSA-gp5f-gqgq-7254.

Is CVE-2022-4521 in your software?

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

Check your SBOMs for free