CVE-2026-113667: ApostropheCMS CAPTCHA Response Token Not URL-encoded Vulnerability
MODERATECVE-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.
CVE-2026-113667 at a Glance
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.
npm install @apostrophecms/form@1.5.5
npm install @apostrophecms/login-recaptcha@1.2.1
npm install @apostrophecms/login-hcaptcha@1.3.0
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
CVE-2026-113667 Affected ApostropheCMS Versions
3 component(s)| 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?
Which ApostropheCMS versions are affected?
What version fixes CVE-2026-113667?
Is @apostrophecms/form affected?
Is @apostrophecms/login-recaptcha affected?
What CWE is associated with CVE-2026-113667?
How can I check npm dependencies for CVE-2026-113667?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}