GHSA-8775-5hwv-wr6v

Suggest an improvement
Source
https://github.com/advisories/GHSA-8775-5hwv-wr6v
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/05/GHSA-8775-5hwv-wr6v/GHSA-8775-5hwv-wr6v.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-8775-5hwv-wr6v
Aliases
Related
Published
2023-05-22T20:35:03Z
Modified
2023-11-08T04:12:34.903044Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Potential for cross-site scripting in PostHog-js
Details

Impact

Potential for cross-site scripting in posthog-js.

Patches

The problem has been patched in posthog-js version 1.57.2.

Workarounds

  • This isn't an issue for sites that have a Content Security Policy in place.
  • Using the HTML tracking snippet on PostHog Cloud always guarantees the latest version of the library – in that case no action is required to upgrade to the patched version.

References

We will publish details of the vulnerability in 30 days as per our security policy.

Database specific
{
    "nvd_published_at": "2023-05-27T00:15:09Z",
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-05-22T20:35:03Z"
}
References

Affected packages

npm / posthog-js

Package

Affected ranges

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