CVE-2021-3314 Cross-site scripting in n/a

Medium 6.1 Published Updated

Reflected XSS in GlassFish log viewer allows attackers to execute scripts in admin browsers, potentially leading to account takeover.

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-2021-3314?

CVE-2021-3314 is a medium-severity cross-site scripting vulnerability in n/a, published on 25 Jun 2021. 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

Oracle GlassFish Server 3.1.2.18 and below allows /common/logViewer/logViewer.jsf XSS. A malicious user can cause an administrator user to supply dangerous content to the vulnerable page, which is then reflected back to the user and executed by the web browser. The most common mechanism for delivering malicious content is to include it as a parameter in a URL that is posted publicly or e-mailed directly to victims. NOTE: This vulnerability only affects products that are no longer supported by the maintainer

Weakness: CWE-79

Which versions are affected by CVE-2021-3314?

It affects 1 product.

Products include Oracle Glassfish Server.

How do I fix CVE-2021-3314?

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

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

Sources

Also known as GHSA-8gpf-3qr7-v8gh.

Is CVE-2021-3314 in your software?

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

Check your SBOMs for free