CVE-2021-37502 Cross site scripting in automad/automad

Medium 5.4 Published Updated

Remote attackers can execute arbitrary code via XSS in the user name field when adding a user in automad.

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

CVE-2021-37502 is a medium-severity cross-site scripting vulnerability in n/a, published on 3 Feb 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Cross Site Scripting (XSS) vulnerability in automad 1.7.5 allows remote attackers to run arbitrary code via the user name field when adding a user.

Weakness: CWE-79

Which versions are affected by CVE-2021-37502?

2 open source packages ship an affected version, including automad/automad. It affects 1 product.

PackageAffectedFixed in
automad/automad PackagistAll versions1.8.0
automad/automad PackagistAll versions1.8.0

Products include Automad Automad.

How do I fix CVE-2021-37502?

Upgrade automad/automad to 1.8.0 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-2021-37502 being exploited?

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

Sources

Also known as GHSA-q3c8-65q7-9v78.

Is CVE-2021-37502 in your software?

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

Check your SBOMs for free