{"id":"GO-2026-5567","revision":null,"records":[{"revision":"56470bba587945978fa9e2d7c09de4a3","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-44523","aliases":[],"title":"Note Mark: JWT Secret Weakness allows Full Account Takeover via token forgery","description":"Note Mark is an open-source note-taking application. Prior to 0.19.4, no minimum length or entropy is enforced on the JWT_SECRET configuration value. The application accepts any base64-decodable secret regardless of size, including secrets as short as 1 byte. This vulnerability is fixed in 0.19.4.","state":0,"publishedAt":"2026-05-14T18:42:58.142+00:00","modifiedAt":"2026-05-15T14:55:08.782+00:00","affected":[{"ecosystem":"Vendor product","name":"note-mark","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"enchant97\",\n                    \"product\": \"note-mark\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 0.19.4\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","score":10,"severity":"CRITICAL"}],"references":["https://github.com/enchant97/note-mark/security/advisories/GHSA-q6mh-rqwh-g786"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-44523","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-44523","identifiers":["CVE-2026-44523"]},"retained":false,"historicalAffected":[]},{"revision":"fdebead4295a44358769ba4a23e27b0d","observedAt":"2026-10-28T06:08:15.999+00:00","statement":{"source":"euvd","id":"EUVD-2026-30367","aliases":["CVE-2026-44523","GHSA-q6mh-rqwh-g786"],"title":"Note Mark is an open-source note-taking application. Prior to 0.19.4, no minimum length or entropy is enforced on the JWT_SECRET configuration value. The application accepts any base64-decodable secret regardless of size, including secrets …","description":"Note Mark is an open-source note-taking application. Prior to 0.19.4, no minimum length or entropy is enforced on the JWT_SECRET configuration value. The application accepts any base64-decodable secret regardless of size, including secrets as short as 1 byte. This vulnerability is fixed in 0.19.4.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","score":10,"severity":null}],"references":["https://github.com/enchant97/note-mark/security/advisories/GHSA-q6mh-rqwh-g786"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-30367","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"May 14, 2026, 6:42:58 PM","dateUpdated":"May 15, 2026, 2:55:08 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-30367","identifiers":["EUVD-2026-30367","CVE-2026-44523","GHSA-q6mh-rqwh-g786"]},"retained":false,"historicalAffected":[]},{"revision":"ee0e7681a0244fa7ad993b4818f542e2","observedAt":"2026-10-27T11:12:17.434+00:00","statement":{"source":"nvd","id":"CVE-2026-44523","aliases":[],"title":"Note Mark is an open-source note-taking application. Prior to 0.19.4, no minimum length or entropy is enforced on the JWT_SECRET configuration value. The application accepts any base64-decodable secret regardless of size, including secrets …","description":"Note Mark is an open-source note-taking application. Prior to 0.19.4, no minimum length or entropy is enforced on the JWT_SECRET configuration value. The application accepts any base64-decodable secret regardless of size, including secrets as short as 1 byte. This vulnerability is fixed in 0.19.4.","state":0,"publishedAt":"2026-05-14T19:16:37.47+00:00","modifiedAt":"2026-10-26T14:10:00.13+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","score":10,"severity":"CRITICAL"}],"references":["https://github.com/enchant97/note-mark/security/advisories/GHSA-q6mh-rqwh-g786"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-44523","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-326","CWE-345"],"productCriteria":[],"sourceDates":{"published":"2026-05-14T19:16:37.470","lastModified":"2026-10-26T14:10:00.130"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-44523","identifiers":["CVE-2026-44523"]},"retained":false,"historicalAffected":[]},{"revision":"e4a352b345524204a3f91ef79921b080","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-q6mh-rqwh-g786","aliases":["CVE-2026-44523","GO-2026-5567"],"title":"Note Mark has a JWT Secret Weakness that allows Full Account Takeover via Token Forgery","description":"#### Summary\n\nNo minimum length or entropy is enforced on the `JWT_SECRET` configuration value. The application accepts any base64-decodable secret regardless of size, including secrets as short as 1 byte.\n\nHS256 secrets below 32 bytes are brute-forceable offline, allowing attackers to recover the signing key and forge valid JWTs for arbitrary users.\n\n---\n\n#### Impact\n\nAn attacker who captures a single valid JWT (e.g, from cookies, logs, or network traffic) can:\n\n\\> Crack the signing secret offline using brute-force or wordlist attacks\n\\> Forge valid JWTs for any user ID (including administrators)\n\\> Authenticate without knowing any credentials\n\nThis results in **full account takeover across the entire application** with no server-side detection or rate limiting possible.\n\n---\n\n#### Details\n\nIn `backend/config/utils.go`, the `Base64Decoded.UnmarshalText` function decodes the JWT secret but does not validate its length or entropy.\n\nIn `backend/core/auth.go`, JWT tokens are signed using HS256 without enforcing minimum key size requirements.\n\nAccording to **RFC 7518 Section 3.2**, HS256 keys must be at least 256 bits (32 bytes). Libraries such as PyJWT explicitly warn against shorter keys, but note-mark performs no such validation.\n\n---\n\n### PoC\n\n1- Deploy note-mark with a weak secret:\n\n   ```\n   JWT_SECRET = base64(\"testsecret123456789012345\")\n   ```\n\n2- Register an account and capture the `Auth-Session-Token` cookie\n\n3- Crack the secret offline (example using Python):\n\n   ```python\n   import jwt, base64\n   jwt.decode(TOKEN, base64.b64decode(SECRET), algorithms=[\"HS256\"])\n   ```\n\n4- Forge a new token for any user UUID with extended expiry\n\n5- Send the forged token in requests → server returns **200 Ok** and authenticates as that user\n\n---\n\n### Reproduction Steps\n\n1- Deploy the application with a JWT secret shorter than 32 bytes (after base64 decoding)\n2- Authenticate and capture a valid JWT\n3- Perform offline brute-force or dictionary attack against the token signature\n4- Recover the secret\n5- Generate a forged JWT for another user\n6- Use the forged token to access protected endpoints\n\n---\n\n### Fix Recommendation\n\n* Enforce a **minimum of 32 bytes (256 bits)** for JWT secrets after base64 decoding\n* Reject weak secrets during configuration parsing (e.g., in `Base64Decoded.UnmarshalText` or config validation)\n* Optionally log warnings or fail startup if the secret is insecure\n\n---\n\n### Resources\n\n* RFC 7518 Section 3.2 (JSON Web Algorithms - HMAC key size requirements)\n* CWE-326: Inadequate Encryption Strength\n* CWE-345: Insufficient Verification of Data Authenticity\n\n---","state":0,"publishedAt":"2026-05-07T21:08:10+00:00","modifiedAt":"2026-06-25T23:11:07.625983+00:00","affected":[{"ecosystem":"Go","name":"github.com/enchant97/note-mark/backend","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.0.0-20260501152247-18b587758667"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/enchant97/note-mark/security/advisories/GHSA-q6mh-rqwh-g786","https://nvd.nist.gov/vuln/detail/CVE-2026-44523","https://github.com/enchant97/note-mark/commit/18b58775866776ed400c403dd0ccad68c1fa4802","https://github.com/enchant97/note-mark","https://github.com/enchant97/note-mark/releases/tag/v0.19.4"],"sourceUrl":"https://github.com/advisories/GHSA-q6mh-rqwh-g786","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-q6mh-rqwh-g786","identifiers":["GHSA-q6mh-rqwh-g786","CVE-2026-44523","GO-2026-5567"]},"retained":false,"historicalAffected":[]},{"revision":"ed2195b134424aacb3d2d30b0ce427fc","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-5567","aliases":["CVE-2026-44523","GHSA-q6mh-rqwh-g786"],"title":"Note Mark has a JWT Secret Weakness that allows Full Account Takeover via Token Forgery in github.com/enchant97/note-mark/backend","description":"Note Mark has a JWT Secret Weakness that allows Full Account Takeover via Token Forgery in github.com/enchant97/note-mark/backend","state":0,"publishedAt":"2026-06-25T22:34:34+00:00","modifiedAt":"2026-06-25T23:01:23.2093687+00:00","affected":[{"ecosystem":"Go","name":"github.com/enchant97/note-mark/backend","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.0.0-20260501152247-18b587758667"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/enchant97/note-mark/security/advisories/GHSA-q6mh-rqwh-g786","https://nvd.nist.gov/vuln/detail/CVE-2026-44523","https://github.com/enchant97/note-mark/commit/18b58775866776ed400c403dd0ccad68c1fa4802","https://github.com/enchant97/note-mark/releases/tag/v0.19.4"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-5567","license":"OSV · upstream source license applies","key":"osv:GO-2026-5567","identifiers":["GO-2026-5567","CVE-2026-44523","GHSA-q6mh-rqwh-g786"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-10-28T10:33:32.5344446+00:00","complete":true,"records":1760,"lastAttemptAt":"2026-10-28T10:33:32.5344446+00:00","lastSuccessAt":"2026-10-28T10:33:32.6834837+00:00","error":null,"lastVerifiedAt":"2026-10-28T10:33:32.6834858+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-d2186f400c54d65f61687f78bb1a00d184d2e215877d0194d7ed70caee809a44-dbe935b5c0445aa8bf0ad6eee2fdccbed1511848550405783cb6764f13f2cea1","complete":true,"records":415637,"lastAttemptAt":"2026-10-28T10:33:28.1218743+00:00","lastSuccessAt":"2026-10-28T10:33:28.0918568+00:00","error":null,"lastVerifiedAt":"2026-10-28T10:33:28.1218743+00:00","snapshotPublishedAt":"2026-10-28T10:28:43+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-3e2d32456d9744919d8e7685c829fe88","complete":false,"records":13207,"lastAttemptAt":"2026-10-28T10:34:28.7143572+00:00","lastSuccessAt":"2026-10-28T10:34:28.7694714+00:00","error":null,"lastVerifiedAt":"2026-10-28T10:34:28.7694714+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-10-28T10:33:32.5344446+00:00","complete":true,"records":1093,"lastAttemptAt":"2026-10-28T10:33:32.5344446+00:00","lastSuccessAt":"2026-10-28T10:33:32.6846081+00:00","error":null,"lastVerifiedAt":"2026-10-28T10:33:32.6846084+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-8d16a738328646698f9217d8ea11893c","complete":true,"records":13449,"lastAttemptAt":"2026-10-28T10:33:33.1463542+00:00","lastSuccessAt":"2026-10-27T22:48:29.491+00:00","error":null,"lastVerifiedAt":"2026-10-27T22:48:29.491+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13514,"expectedIdentifiers":13514,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-f7cb12508d9e6a348c8a60f772ed85529cc80cd2ff853da1099b57754b20e943","complete":true,"records":9790,"lastAttemptAt":"2026-10-28T10:33:28.4933633+00:00","lastSuccessAt":"2026-10-27T21:49:03.9756799+00:00","error":null,"lastVerifiedAt":"2026-10-28T10:33:28.4933633+00:00","snapshotPublishedAt":"2026-10-27T21:48:11+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-72e5e79de0026dd0562d40734074a2236a06886643d67182b8381eaee757dbf7","complete":true,"records":1966,"lastAttemptAt":"2026-10-28T10:33:28.2877501+00:00","lastSuccessAt":"2026-10-27T21:46:38.0277323+00:00","error":null,"lastVerifiedAt":"2026-10-28T10:33:28.2877501+00:00","snapshotPublishedAt":"2026-10-27T21:18:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-9cc0e41ed4e75d0c111bed7fd0bbcd4f139c80cc1fc67f8c3d9a33a41da846ad","complete":true,"records":3002,"lastAttemptAt":"2026-10-28T10:33:32.5040876+00:00","lastSuccessAt":"2026-10-28T10:33:32.3653779+00:00","error":null,"lastVerifiedAt":"2026-10-28T10:33:32.5040876+00:00","snapshotPublishedAt":"2026-10-28T09:02:50+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-2ba4ef78ff3a54a3ff2eeaf8e09b7b84901727f582723b80c5b0279e777b2781","complete":true,"records":230857,"lastAttemptAt":"2026-10-28T10:33:28.3916004+00:00","lastSuccessAt":"2026-10-28T09:35:14.9469514+00:00","error":null,"lastVerifiedAt":"2026-10-28T10:33:28.3916004+00:00","snapshotPublishedAt":"2026-10-28T09:33:01+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}