Vulnerabilities in pkg:npm/@apostrophecms/login-recaptcha

PACKAGE
Advisory Identifier: GHSA-44qr-rrjg-2cqq
Advisory Summary

CVE-2026-113667 is a MODERATE captcha response token not url-encoded vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting ApostropheCMS libraries in the npm ecosystem. The issue involves captcha response token not url-encoded. Remediation is available by upgrading affected packages to version 1.5.5, 1.2.1, 1.3.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@apostrophecms/login-recaptcha

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@apostrophecms/login-recaptcha. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-44qr-rrjg-2cqq CVE-2026-113667 MODERATE ApostropheCMS: CAPTCHA response token not URL-encoded

CVE-2026-113667 at a Glance

CVE Identifier CVE-2026-113667
GHSA Identifier GHSA-44qr-rrjg-2cqq
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-116: Improper Encoding or Escaping of Output
Affected Product ApostropheCMS
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-113667

To remediate this vulnerability, upgrade all affected ApostropheCMS dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@apostrophecms/form fixed: 1.5.5
npm install @apostrophecms/form@1.5.5
@apostrophecms/login-recaptcha fixed: 1.2.1
npm install @apostrophecms/login-recaptcha@1.2.1
@apostrophecms/login-hcaptcha fixed: 1.3.0
npm install @apostrophecms/login-hcaptcha@1.3.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @apostrophecms/form

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-113667, inspect your project dependencies using npm:

npm ls @apostrophecms/form

Analyze the terminal output to locate any version of ApostropheCMS in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.5), your application is affected.

Note: The npm ls @apostrophecms/form 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-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. In ApostropheCMS, 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

**Summary** Form and login CAPTCHA verification interpolate the user-supplied widget token unencoded into the server-side verification URL/body, allowing a crafted token to inject query parameters into the reCAPTCHA/hCaptcha verify request. **Details** - `packages/form/lib/recaptcha.js:39` — `recaptchaUri = 'https://www.google.com/recaptcha/api/siteverify?secret=${recaptchaSecret}&response=${input.recaptcha}'` - `packages/login-recaptcha/index.js:44` — same pattern for login - `packages/login-hcaptcha/index.js:47` — `body: 'response=${token}&secret=${secret}'` **PoC** ``` input.recaptcha = 'attacker_token&secret=INJECTED_SECRET&something=1' → resulting verify URL: https://www.google.com/recaptcha/api/siteverify?secret=<real>&response=attacker_token&secret=INJECTED_SECRET&something=1 # (replicated exactly from recaptcha.js:39) ``` **Impact** Low: a crafted token smuggles extra `key=value` pairs (`secret`, extra `response`) into the outbound verify call, forcing verification failures (DoS of the captcha gate and of captcha-gated login/form flows) and enabling automated bypass probing; no secret exfiltration. **Remediation** — Build the verify request with `URL` + `searchParams` (or `encodeURIComponent` on both `secret` and `response`), and validate the token against `^[A-Za-z0-9._-]{1,2048}$` before use.

CVE-2026-113667 Affected ApostropheCMS Versions

3 component(s)
Fixed Versions:
1.5.51.2.11.3.0
Product / Package Ecosystem Affected Versions Fixed Version
@apostrophecms/form
npm
< 1.5.5
1.5.5
@apostrophecms/login-recaptcha
npm
< 1.2.1
1.2.1
@apostrophecms/login-hcaptcha
npm
< 1.3.0
1.3.0

References

Frequently Asked Questions

What is CVE-2026-113667?
CVE-2026-113667 is a security vulnerability in ApostropheCMS involving CAPTCHA response token not URL-encoded under CWE-116: Improper Encoding or Escaping of Output.
Which ApostropheCMS versions are affected?
Affected versions include releases prior to 1.5.5, 1.2.1, 1.3.0 across affected packages: @apostrophecms/form, @apostrophecms/login-recaptcha, @apostrophecms/login-hcaptcha.
What version fixes CVE-2026-113667?
Upgrading to 1.5.5, 1.2.1, 1.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @apostrophecms/form affected?
Yes, @apostrophecms/form is affected in releases prior to 1.5.5. Upgrade your dependency to 1.5.5 or later.
Is @apostrophecms/login-recaptcha affected?
Yes, @apostrophecms/login-recaptcha is affected in releases prior to 1.2.1. Upgrade your dependency to 1.2.1 or later.
What CWE is associated with CVE-2026-113667?
CVE-2026-113667 is classified under CWE-116: Improper Encoding or Escaping of Output (The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.).
How can I check npm dependencies for CVE-2026-113667?
Run the dependency tree command: 'npm ls @apostrophecms/form'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-44qr-rrjg-2cqq",
  "modified" : "2026-10-20T18:05:36Z",
  "published" : "2026-10-20T18:05:35Z",
  "aliases" : [ "CVE-2026-113667" ],
  "summary" : "ApostropheCMS: CAPTCHA response token not URL-encoded",
  "details" : "**Summary**\nForm and login CAPTCHA verification interpolate the user-supplied widget token unencoded into the server-side verification URL/body, allowing a crafted token to inject query parameters into the reCAPTCHA/hCaptcha verify request.\n\n**Details**\n- `packages/form/lib/recaptcha.js:39` — `recaptchaUri = 'https://www.google.com/recaptcha/api/siteverify?secret=${recaptchaSecret}&response=${input.recaptcha}'`\n- `packages/login-recaptcha/index.js:44` — same pattern for login\n- `packages/login-hcaptcha/index.js:47` — `body: 'response=${token}&secret=${secret}'`\n\n**PoC**\n```\ninput.recaptcha = 'attacker_token&secret=INJECTED_SECRET&something=1'\n→ resulting verify URL:\n   https://www.google.com/recaptcha/api/siteverify?secret=<real>&response=attacker_token&secret=INJECTED_SECRET&something=1\n# (replicated exactly from recaptcha.js:39)\n```\n\n**Impact**\nLow: a crafted token smuggles extra `key=value` pairs (`secret`, extra `response`) into the outbound verify call, forcing verification failures (DoS of the captcha gate and of captcha-gated login/form flows) and enabling automated bypass probing; no secret exfiltration.\n\n**Remediation** — Build the verify request with `URL` + `searchParams` (or `encodeURIComponent` on both `secret` and `response`), and validate the token against `^[A-Za-z0-9._-]{1,2048}$` before use.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@apostrophecms/form"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.5.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@apostrophecms/login-recaptcha"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@apostrophecms/login-hcaptcha"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-44qr-rrjg-2cqq"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apostrophecms/apostrophe/commit/9500b8b0e1d630d5e07fbb5fd2c25ed0943845ce"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apostrophecms/apostrophe/commit/f84fd41cbf6c22eb8d0008fc9c25df1f7130b350"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apostrophecms/apostrophe"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apostrophecms/apostrophe/releases/tag/@apostrophecms/form@1.5.5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-116" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-20T18:05:35Z",
    "nvd_published_at" : null
  }
}