GHSA-r4jg-5v89-9v62

Suggest an improvement
Source
https://github.com/advisories/GHSA-r4jg-5v89-9v62
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/11/GHSA-r4jg-5v89-9v62/GHSA-r4jg-5v89-9v62.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-r4jg-5v89-9v62
Aliases
  • CVE-2022-39390
Withdrawn
2022-11-09T22:35:46Z
Published
2022-11-08T20:48:49Z
Modified
2026-09-10T03:49:47Z
Summary
Withdrawn: Octocat.js vulnerable to code injection
Details

Withdrawn

This advisory has been withdrawn because it is a test.

Original Description

Impact

Users can include their own images for accessories via provided URLs. These URLs are not validated and can result in execution of injected code.

Patches

This vulnerability was fixed in version 1.2 of octocat.js

Workarounds

Directly exposing rendered images to a website can introduce the vulnerability to users. To avoid, writing an image to disk then using that image in an image element in HTML mitigates the risk.

References

To render the file correctly, see documentation at readme.md

For more information

If you have any questions or comments about this advisory:

Database specific
{
    "cwe_ids":  [
        "CWE-74",
        "CWE-94"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2022-11-08T20:48:49Z",
    "nvd_published_at":  "2022-11-09T01:15:00Z",
    "severity":  "HIGH"
}
References

Affected packages

npm / octocat.js

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/11/GHSA-r4jg-5v89-9v62/GHSA-r4jg-5v89-9v62.json"