Vulnerabilities in pkg:npm/@tryghost/activitypub
PACKAGECVE-2026-53950 is a HIGH (CVSS 7.5) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting @tryghost/activitypub libraries in the npm ecosystem. The issue involves xss in ghost's activitypub client. Remediation is available by upgrading affected packages to version 3.1.0.
pkg:npm/@tryghost/activitypub
Vulnerability advisories affecting package pkg:npm/@tryghost/activitypub. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-xpp7-93x6-v29m | CVE-2026-53950 | HIGH | XSS in Ghost's ActivityPub client |
CVE-2026-53950 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-53950
To remediate this vulnerability, upgrade all affected @tryghost/activitypub dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @tryghost/activitypub@3.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @tryghost/activitypub
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-53950, inspect your project dependencies using npm:
npm ls @tryghost/activitypub
Analyze the terminal output to locate any version of @tryghost/activitypub in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.0), your application is affected.
Note: The npm ls @tryghost/activitypub command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In @tryghost/activitypub, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-53950 Affected @tryghost/activitypub Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@tryghost/activitypub
|
npm |
< 3.1.0
|
3.1.0
|
References
Frequently Asked Questions
What is CVE-2026-53950?
Which @tryghost/activitypub versions are affected?
What version fixes CVE-2026-53950?
Is @tryghost/activitypub affected?
What is the CVSS score of CVE-2026-53950?
What CWE is associated with CVE-2026-53950?
How can I check npm dependencies for CVE-2026-53950?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xpp7-93x6-v29m",
"modified" : "2026-08-04T21:54:01Z",
"published" : "2026-08-04T21:54:01Z",
"aliases" : [ "CVE-2026-53950" ],
"summary" : "XSS in Ghost's ActivityPub client",
"details" : "### Impact\n\nThe ActivityPub client in Ghost was vulnerable to JavaScript injection on posts shared by a maliciously customised ActivityPub server.\n\n### Vulnerable Versions\n\nThis vulnerability is present in the @tryghost/activitypub package up to v3.0.8. All prior versions are also affected. \n\n### Patches\n\n@tryghost/activitypub v3.1.0 contains a fix for this issue and is also automatically fetched by Ghost.\n\n### References\n\nGhost thanks Brad Geesaman, Ghost Security for disclosing this vulnerability responsibly. \n\n### For more information\n\nIf you have any questions or comments about this advisory, email Ghost at [security@ghost.org](mailto:security@ghost.org).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@tryghost/activitypub"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/TryGhost/Ghost/security/advisories/GHSA-xpp7-93x6-v29m"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-53950"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/TryGhost/Ghost"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-04T21:54:01Z",
"nvd_published_at" : "2026-06-24T19:17:12Z"
}
}