Skip to main content

ApostropheCMS CVE-2026-45013

| EUVDEUVD-2026-36571 HIGH
Improper Input Validation (CWE-20)
2026-05-14 https://github.com/apostrophecms/apostrophe GHSA-gf43-24g3-5hw2
8.1
CVSS 3.1 · Vendor: https://github.com/apostrophecms/apostrophe
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Enumerate valid user email
  2. Delivery
    Send crafted reset request with malicious Host header
  3. Exploit
    Victim receives legitimate reset email with attacker-controlled URL
  4. Install
    Victim clicks reset link
  5. C2
    Attacker captures valid reset token
  6. Execute
    Submit token to real site reset endpoint
  7. Impact
    Set new password
  8. Step 8
    Full account takeover

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

Requires three specific deployment conditions: (1) passwordReset feature explicitly enabled in ApostropheCMS login module options (opt-in configuration, not enabled by default), (2) apos.baseUrl configuration option NOT set (vendor notes this is common in development environments and some production deployments that rely on dynamic host detection), and (3) attacker knowledge of a valid user email address registered in the system. The CVSS vector UI:R indicates the victim must click the malicious reset link sent via email, adding a social engineering element. Attack succeeds against default configurations only when administrators have opted into password reset functionality but failed to set the baseUrl parameter. Deployments following vendor security guidance to configure baseUrl are immune regardless of other settings.

Impact

Real-world risk is moderate-to-high for affected deployments, but exploitability is narrower than raw CVSS suggests. CVSS 8.1 indicates network attack vector (AV:N), low complexity (AC:L), no privileges required (PR:N), but requires user interaction (UI:R) - the victim must click the malicious reset link. The high confidentiality and integrity impact reflects full account takeover capability. However, exploitation requires three specific conditions: passwordReset feature must be explicitly enabled (opt-in), apos.baseUrl must be unconfigured (the vendor advisory notes this is 'common in development and some production deployments' but no telemetry confirms prevalence), and the attacker must know valid user email addresses. The UI:R requirement significantly reduces automated exploitation potential compared to server-side vulnerabilities. No EPSS, KEV, or POC data available in provided intelligence, suggesting this is a newly disclosed vulnerability without evidence of active exploitation. The detailed technical disclosure in the GitHub advisory makes exploitation trivial for informed attackers, but the preconditions limit the pool of vulnerable deployments. Organizations running ApostropheCMS in production without baseUrl configured face immediate risk; those following deployment best practices are not affected.

Exploit ScenarioDerived

Attacker identifies victim@company.com as a valid user on a vulnerable ApostropheCMS site (e.g., from public staff directory or by observing login error messages). Attacker sends a POST request to /api/v1/login/reset-request with Host header set to attacker.com and JSON body containing the victim's email. The application generates a valid reset token and emails the victim a legitimate password reset message, but with URL http://attacker.com/login?reset=TOKEN&email=victim@company.com instead of the real site domain. When the victim clicks the link believing it came from their organization, the token is delivered to the attacker's web server. Attacker immediately uses the captured token against the real site's reset endpoint to set a new password and gain full access to the victim's account, including any administrative privileges the account holds.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 14, 2026

Account takeover in ApostropheCMS password reset flow allows remote attackers to steal password reset tokens via Host header injection. When apos.baseUrl is not configured (common in development and some production deployments), the password reset mechanism trusts the attacker-controlled HTTP Host header to construct reset URLs, causing victims to receive legitimate reset emails with links pointing to attacker domains. Clicking the link delivers valid reset tokens to the attacker, enabling full account compromise. CVSS 8.1 (High) with network attack vector, low complexity, and no privileges required. No public exploit identified at time of analysis, though the vulnerability is straightforward to exploit given the detailed technical disclosure in the GitHub security advisory.

RemediationAI

No vendor-released patch identified at time of analysis - affected versions through 4.29.0 remain vulnerable per GitHub advisory. Immediate mitigation requires configuration change rather than upgrade: operators must explicitly set apos.baseUrl in their ApostropheCMS configuration to prevent the application from trusting the Host header. Add to app.js or module configuration: modules: { '@apostrophecms/express': { options: { baseUrl: 'https://yourdomain.com' } } }. Replace 'https://yourdomain.com' with the canonical production domain. This configuration change completely eliminates attacker control over reset URL construction by forcing the application to use the hardcoded baseUrl value. As a defense-in-depth measure, organizations can also disable password reset functionality if not required by setting passwordReset: false in login module options, though this impacts legitimate user password recovery. Monitor the GitHub advisory at https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-gf43-24g3-5hw2 and https://github.com/advisories/GHSA-gf43-24g3-5hw2 for vendor patch releases. The advisory recommends a code-level fix where resetRequest refuses to proceed when apos.baseUrl is missing, which would eliminate the vulnerability at the framework level.

Affected VersionsENISA

Apostrophe ≤ 4.29.0

Affected Packages

npm apostrophe no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in the password reset flow of ApostropheCMS's login module (modules/@apostrophecms/login/index.js). The root cause is improper input validation (CWE-20) and weak password recovery mechanism design (CWE-640). When the apos.baseUrl configuration option is not set, the setPrefixUrls middleware constructs req.baseUrl and req.absoluteUrl using req.hostname, which Node.js/Express derives directly from the HTTP Host header without validation. The resetRequest route handler then uses this tainted value as the base URL for password reset links sent via email. The code constructs URLs using 'new URL(req.absoluteUrl, fallback)' where both parameters can be attacker-controlled when baseUrl is missing. This is a classic Host header injection vulnerability affecting web frameworks that trust client-supplied headers for URL construction. The vulnerability affects npm package 'apostrophe' versions up to and including 4.29.0 according to CPE data.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/apostrophecms/apostrophe) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Primary rating from Vendor (https://github.com/apostrophecms/apostrophe) · only source for this CVE.

CVSS VectorVendor: https://github.com/apostrophecms/apostrophe

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

DescriptionCVE.org

Summary

ApostropheCMS's password reset flow constructs the reset URL using req.hostname, which is derived directly from the attacker-controlled HTTP Host header when apos.baseUrl is not explicitly configured. An unauthenticated attacker who knows a victim's email address can send a crafted reset request that causes the application to email the victim a reset link pointing to the attacker's domain. When the victim clicks the link, the valid reset token is delivered to the attacker, enabling full account takeover.

Affected Component

modules/@apostrophecms/login/index.js - resetRequest route Precondition: passwordReset: true is set and apos.baseUrl is not configured.

Vulnerability Details

The setPrefixUrls middleware (i18n layer) builds req.baseUrl using req.hostname:

js
// Simplified from i18n middleware
req.baseUrl = `${req.protocol}://${req.hostname}`;
req.absoluteUrl = req.baseUrl + req.url;

The resetRequest handler then passes this tainted value directly into URL construction:

js
const parsed = new URL(
  req.absoluteUrl,           // ← tainted by attacker's Host header
  self.apos.baseUrl
    ? undefined
    : `${req.protocol}://${req.hostname}${port}`  // ← also tainted
);
parsed.pathname = '/login';
parsed.searchParams.append('reset', reset);   // real, valid token
parsed.searchParams.append('email', user.email);
await self.email(..., { url: parsed.toString() }, ...);
// Email sent to victim with URL pointing to attacker-controlled domain

When apos.baseUrl is configured, it is used unconditionally and the attacker's Host header is ignored - that path is not vulnerable.

Attack Scenario

  1. Attacker identifies a valid user email (e.g. from the site's public interface).
  2. Attacker sends:
   POST /api/v1/login/reset-request
   Host: evil.attacker.com
   Content-Type: application/json

   {"email": "victim@example.com"}
  1. The application emails the victim:
   Click here to reset your password:
   http://evil.attacker.com/login?reset=TOKEN&email=victim@example.com
  1. Victim clicks the link; attacker's server captures TOKEN.
  2. Attacker calls the real target's reset endpoint with the captured token and

sets a new password - full account takeover.

Preconditions

  • passwordReset: true configured in login module options (opt-in)
  • apos.baseUrl is not set (common in development and some production deployments)
  • Attacker knows or can enumerate a valid account email

Impact

Full account takeover of any account whose email address is known to the attacker. No authentication or interaction beyond sending a single HTTP request is required from the attacker. The victim need only click a link in a legitimate-looking password reset email from their own site.

Remediation

Operators (immediate): Always set apos.baseUrl in your configuration:

js
// app.js or module configuration
modules: {
  '@apostrophecms/express': {
    options: {
      baseUrl: 'https://yourdomain.com'
    }
  }
}

Framework fix (recommended): The resetRequest route should refuse to proceed if apos.baseUrl is not configured, rather than falling back to the tainted req.hostname. Example:

js
// In resetRequest handler
if (!self.apos.baseUrl) {
  throw self.apos.error(
    'invalid',
    'apos.baseUrl must be configured to enable password reset'
  );
}
const parsed = new URL(self.loginUrl(), self.apos.baseUrl);

This eliminates the attacker-controlled input entirely from the URL construction path.

References

Executive ViewAI

Why It Matters

ApostropheCMS instances without explicit baseUrl configuration are vulnerable to account takeover through password reset token interception via Host header injection. Attackers can redirect password reset emails to attacker-controlled domains, capturing valid reset tokens and gaining full account access without authentication. This affects any organization running vulnerable ApostropheCMS deployments, particularly those in development or cloud environments where baseUrl is commonly omitted.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Explicitly configure apos.baseUrl with your legitimate domain in all deployment environments; (2) Implement reverse proxy Host header validation to reject requests with unexpected Host values; (3) Disable public password reset functionality and use single sign-on (SSO) or admin-provisioned password resets only; (4) Deploy email gateway rules to alert on any legitimate password reset emails containing unexpected hostnames.

Threat Intelligence Overview

EPSS Score
0.1%
Top 66% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy