CVE-2022-0274 Cross-site Scripting (XSS) - Stored in orchardcms/orchardcore

Medium 6.8 Published Updated

Stored Cross-Site Scripting in OrchardCore allows attackers to inject malicious scripts, potentially leading to session hijacking or code execution.

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

What is CVE-2022-0274?

CVE-2022-0274 is a medium-severity cross-site scripting vulnerability in orchardcms/orchardcore, published on 19 Jan 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Cross-site Scripting (XSS) - Stored in NuGet OrchardCore.Application.Cms.Targets prior to 1.2.2.

Weakness: CWE-79

Which versions are affected by CVE-2022-0274?

2 open source packages ship an affected version, including OrchardCore.Application.Cms.Targets. It affects 1 product.

PackageAffectedFixed in
OrchardCore.Application.Cms.Targets NuGetAll versions1.2.2
OrchardCore.Application.Cms.Targets NuGetAll versions1.2.2

Products include Orchardcore Orchardcore.

How do I fix CVE-2022-0274?

Upgrade OrchardCore.Application.Cms.Targets to 1.2.2 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-0274 being exploited?

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

Sources

Also known as GHSA-r8hp-5m7c-jhv4.

Is CVE-2022-0274 in your software?

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

Check your SBOMs for free