GHSA-pwhf-39xg-4rxw

Suggest an improvement
Source
https://github.com/advisories/GHSA-pwhf-39xg-4rxw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/06/GHSA-pwhf-39xg-4rxw/GHSA-pwhf-39xg-4rxw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-pwhf-39xg-4rxw
Aliases
Related
Published
2021-06-04T19:09:35Z
Modified
2026-02-04T02:47:14.203583Z
Severity
  • 6.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Script injection
Details

Impact

A malicious internal actor is able to upload documentation content with malicious scripts. These scripts would normally be sanitized by the TechDocs frontend, but by tricking a user to visit the content via the TechDocs API, the content sanitazion will be bypassed. If the TechDocs API is hosted on the same origin as the Backstage app or other backend plugins, this may give access to sensitive data.

The ability to upload malicious content may be limited by internal code review processes, unless the chosen TechDocs deployment method is to use an object store and the actor has access to upload files directly to that store.

Patches

The vulnerability is patched in the 0.6.4 release of @backstage/techdocs-common.

For more information

If you have any questions or comments about this advisory:

Database specific
{
    "cwe_ids": [
        "CWE-434",
        "CWE-77"
    ],
    "github_reviewed_at": "2021-06-03T22:02:53Z",
    "nvd_published_at": "2021-06-03T17:15:00Z",
    "severity": "MODERATE",
    "github_reviewed": true
}
References

Affected packages

npm / @backstage/techdocs-common

Package

Name
@backstage/techdocs-common
View open source insights on deps.dev
Purl
pkg:npm/%40backstage/techdocs-common

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.6.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/06/GHSA-pwhf-39xg-4rxw/GHSA-pwhf-39xg-4rxw.json"