CVE-2022-21805 Cross-site scripting in php mailform

Medium 6.1 Published Updated

Remote attackers can inject arbitrary scripts via reflected XSS in the attached file name of php_mailform, potentially compromising user sessions.

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
None listed

What is CVE-2022-21805?

CVE-2022-21805 is a medium-severity cross-site scripting vulnerability in econosys system php_mailform, published on 8 Feb 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

Reflected cross-site scripting vulnerability in the attached file name of php_mailform versions prior to Version 1.40 allows a remote unauthenticated attacker to inject an arbitrary script via unspecified vectors.

Weakness: CWE-79

Which versions are affected by CVE-2022-21805?

It affects 1 product.

Products include Econosys-System Php Mailform.

How do I fix CVE-2022-21805?

No fix has been published for CVE-2022-21805 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-2022-21805 being exploited?

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

Sources

Also known as GHSA-7386-4wm9-v7xr.

Is CVE-2022-21805 in your software?

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

Check your SBOMs for free