Description
ApostropheCMS is an open-source Node.js content management system. Versions up to and including 1.4.2 of the `@apostrophecms/seo` package injects the Google Analytics Tracking ID (`seoGoogleTrackingId`) and Google Tag Manager ID (`seoGoogleTagManager`) directly into `<script>` tag bodies using JavaScript template literals without any sanitization or validation. Any user with editor-level access (the default role for content managers) can set these fields to a malicious value, resulting in stored XSS that executes on every page for every visitor of the site. As of time of publication, no known patched versions are available.
Published: 2026-06-12
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

ApostropheCMS versions up to 1.4.2 allow an editor to set the Google Analytics Tracking ID and Google Tag Manager ID directly into a script tag’s body using unsanitized template literals. Because the input is stored in the database and rendered in every page, a malicious value results in stored cross‑site scripting that executes in all visitors’ browsers. The attacker can steal credentials, redirect traffic, or perform other malicious actions on the user’s side. No patched version is available at the time of publication.

Affected Systems

The affected product is apostrophecms’s @apostrophecms/seo package. All versions up to and including 1.4.2 are vulnerable. The vulnerability affects any instance where editor‑level users are granted access to edit the seoGoogleTrackingId or seoGoogleTagManager fields.

Risk and Exploitability

The CVSS score of 8.7 indicates a high‑severity flaw. The EPSS score is not available, so the likelihood of exploitation cannot be quantified, but the vulnerability is listed as not in the CISA KEV catalog. Attackers would need editor or higher privileges to inject the malicious value, so the primary attack vector is an authenticated, privileged web application input. Once a malicious ID is stored, all site visitors are affected, making this a serious user‑side risk even though it does not compromise the hosting infrastructure directly.

Generated by OpenCVE AI on June 12, 2026 at 22:25 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Restrict editor‑level users from setting the google tracking and tag manager identifiers until a patch is released
  • Implement input validation and escaping for seoGoogleTrackingId and seoGoogleTagManager fields in the @apostrophecms/seo package
  • Remove or comment out the script tag injection that incorporates these identifiers until the flaw is fixed

Generated by OpenCVE AI on June 12, 2026 at 22:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 12 Jun 2026 21:45:00 +0000

Type Values Removed Values Added
Description ApostropheCMS is an open-source Node.js content management system. Versions up to and including 1.4.2 of the `@apostrophecms/seo` package injects the Google Analytics Tracking ID (`seoGoogleTrackingId`) and Google Tag Manager ID (`seoGoogleTagManager`) directly into `<script>` tag bodies using JavaScript template literals without any sanitization or validation. Any user with editor-level access (the default role for content managers) can set these fields to a malicious value, resulting in stored XSS that executes on every page for every visitor of the site. As of time of publication, no known patched versions are available.
Title @apostrophecms/seo Vulnerable to Stored XSS via Unsanitized Google Analytics / GTM ID Injected into Script Tag
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 8.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-12T20:57:48.913Z

Reserved: 2026-06-09T19:39:52.404Z

Link: CVE-2026-53608

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-06-12T22:16:52.660

Modified: 2026-06-12T22:16:52.660

Link: CVE-2026-53608

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-12T22:30:08Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')