CVE-2024-46976 Circumvention of cross site scripting Protection in @backstage/plugin-techdocs-backend

Medium 6.5 Published Updated

Attackers with storage bucket access can inject scripts into TechDocs content, executing them in victims' browsers via Backstage developer portals.

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-2024-46976?

CVE-2024-46976 is a medium-severity cross-site scripting vulnerability in Linuxfoundation Backstage, published on 17 Sep 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Backstage is an open framework for building developer portals. An attacker with control of the contents of the TechDocs storage buckets is able to inject executable scripts in the TechDocs content that will be executed in the victim's browser when browsing documentation or navigating to an attacker provided link. This has been fixed in the 1.10.13 release of the `@backstage/plugin-techdocs-backend` package. users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness: CWE-79, CWE-693

Which versions are affected by CVE-2024-46976?

2 open source packages ship an affected version, including @backstage/plugin-techdocs-backend. It affects 1 product.

PackageAffectedFixed in
@backstage/plugin-techdocs-backend npmAll versions1.10.13
@backstage/plugin-techdocs-backend npmAll versions1.10.13

Products include Linuxfoundation Backstage.

How do I fix CVE-2024-46976?

Upgrade @backstage/plugin-techdocs-backend to 1.10.13 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-2024-46976 being exploited?

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

All Linuxfoundation Backstage vulnerabilities

Sources

Also known as GHSA-5j94-f3mf-8685.

Is CVE-2024-46976 in your software?

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

Check your SBOMs for free