{"id":"CVE-2021-43786","aliases":["CVE-2021-43786","GHSA-hf2m-j98r-4fqw"],"related":[],"kind":"vulnerability","state":"published","title":"API token verification can be bypassed","summary":"Nodebb is an open source Node.js based forum software. In affected versions incorrect logic present in the token verification step unintentionally allowed master token access to the API. The vulnerability has been patch as of v1.18.5. Users are advised to upgrade as soon as possible.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Nodebb is an open source Node.js based forum software. In affected versions incorrect logic present in the token verification step unintentionally allowed master token access to the API. The vulnerability has been patch as of v1.18.5. Users are advised to upgrade as soon as possible.","source":"cvelist"},{"lang":"en","text":"### Impact\nIncorrect logic present in the token verification step unintentionally allowed master token access to the API.\n\n### Patches\nThe vulnerability has been patch as of v1.18.5.\n\n### Workarounds\nCherry-pick commit hash 04dab1d550cdebf4c1567bca9a51f8b9ca48a500 to receive this patch in lieu of a full upgrade.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [security@nodebb.org](mailto:security@nodebb.org)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Nodebb es un software de foro de código abierto basado en Node.js. En las versiones afectadas, una lógica incorrecta presente en el paso de verificación del token permitía involuntariamente el acceso del token maestro a la API. La vulnerabilidad ha sido parcheada a partir de la versión v1.18.5. Se recomienda a usuarios que actualicen lo antes posible","source":"nvd"}],"published":"2021-11-29T19:30:17.000Z","modified":"2026-07-08T06:28:56.284Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-287"],"affected":[{"ranges":[{"version":">= 1.15.0, < 1.18.5","status":"affected"}],"vendor":"NodeBB","product":"NodeBB","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.15.0","status":"affected","fixed":"1.18.5"}],"ecosystem":"npm","package":"nodebb","purl":"pkg:npm/nodebb","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.15.0","lastAffected":"1.18.4"}],"vendor":"nodebb","product":"nodebb","cpe":"cpe:2.3:a:nodebb:nodebb:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/NodeBB/NodeBB/releases/tag/v1.18.5","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/NodeBB/NodeBB/security/advisories/GHSA-hf2m-j98r-4fqw","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/NodeBB/NodeBB/commit/04dab1d550cdebf4c1567bca9a51f8b9ca48a500","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://blog.sonarsource.com/nodebb-remote-code-execution-with-one-shot/","tags":["exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43786","tags":["advisory"],"sources":["ghsa"]},{"url":"https://blog.sonarsource.com/nodebb-remote-code-execution-with-one-shot","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/NodeBB/NodeBB","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-43786","url":"https://www.cve.org/CVERecord?id=CVE-2021-43786","licence":"CVE Terms of Use","modified":"2024-08-04T04:03:08.931Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hf2m-j98r-4fqw","url":"https://github.com/advisories/GHSA-hf2m-j98r-4fqw","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:56.284Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-43786","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43786","licence":"Public domain","modified":"2026-06-17T04:11:26.233Z"}],"updatedAt":"2026-11-25T22:24:36.116Z","epss":{"score":0.02369,"percentile":0.84573,"date":"2026-11-30T12:00:22.000Z"}}