CVE-2021-4227 Ark Comment Editor <= 2.15.6 - Iframe Injection via Comment

Medium 5.3 Published Updated

Attackers can inject iframes into comments via the source editor, loading arbitrary content and potentially executing scripts in the victim's browser.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-4227?

CVE-2021-4227 is a medium-severity cross-site scripting vulnerability in Unknown ark-commenteditor, published on 16 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The ark-commenteditor WordPress plugin through 2.15.6 does not properly sanitise or encode the comments when in Source editor, allowing attackers to inject an iFrame in the page and thus load arbitrary content from any page to the comment section

Weakness: CWE-74

Which versions are affected by CVE-2021-4227?

It affects 1 product.

Products include Obg Ark Wysiwyg Comment Editor.

How do I fix CVE-2021-4227?

No fix has been published for CVE-2021-4227 yet. Limit exposure of the affected software until one is available.

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-4227 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-4227 exists.

Sources

Also known as GHSA-h3w7-w9rh-w829.

Is CVE-2021-4227 in your software?

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

Check your SBOMs for free