GHSA-phph-xpj4-wvcv Cross-Site Scripting in hexo-admin

Not scored Published

Attackers with post creation privileges can execute arbitrary JavaScript in victims' browsers via unsanitized markdown in hexo-admin.

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

What is GHSA-phph-xpj4-wvcv?

GHSA-phph-xpj4-wvcv is a cross-site scripting vulnerability in hexo-admin, published on 3 Sep 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

All versions of hexo-admin are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize rendered markdown, allowing attackers to execute arbitrary JavaScript in a victim's browser if they are able to create new posts.

Recommendation

No fix is currently available. Consider using an alternative package until a fix is made available.

Which versions are affected by GHSA-phph-xpj4-wvcv?

2 open source packages ship an affected version, including hexo-admin.

PackageAffectedFixed in
hexo-admin npmFrom 0.0.0None
hexo-admin npmFrom 0.0.0None

How do I fix GHSA-phph-xpj4-wvcv?

No fix has been published for GHSA-phph-xpj4-wvcv 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 GHSA-phph-xpj4-wvcv being exploited?

There is no known exploitation of GHSA-phph-xpj4-wvcv in the wild and no public exploit code.

Sources

Is GHSA-phph-xpj4-wvcv in your software?

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

Check your SBOMs for free