{"id":"CVE-2026-25126","state":"PUBLISHED","title":"PolarLearn's unvalidated vote direction allows vote count manipulation","description":"PolarLearn is a free and open-source learning program. Prior to version 0-PRERELEASE-15, the vote API route (`POST /api/v1/forum/vote`) trusts the JSON body’s `direction` value without runtime validation. TypeScript types are not enforced at runtime, so an attacker can send arbitrary strings (e.g., `\"x\"`) as `direction`. Downstream (`VoteServer`) treats any non-`\"up\"` and non-`null` value as a downvote and persists the invalid value in `votes_data`. This can be exploited to bypass intended business logic. Version 0-PRERELEASE-15 fixes the vulnerability.","publishedAt":"2026-01-29T22:06:37.224Z","updatedAt":"2026-02-02T16:34:07.949Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["polarnl PolarLearn"],"affected":[{"vendor":"polarnl","product":"PolarLearn","versions":[{"version":"< 0-PRERELEASE-15","status":"affected"}]}],"references":["https://github.com/polarnl/PolarLearn/security/advisories/GHSA-ghpx-5w2p-p3qp","https://github.com/polarnl/PolarLearn/commit/e6227d94d0e53e854f6a46480db8cd1051184d41"],"weaknesses":["CWE-20"],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/25xxx/CVE-2026-25126.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-25126","state":"PUBLISHED","datePublished":"2026-01-29T22:06:37.224Z","dateUpdated":"2026-02-02T16:34:07.949Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-01-29T14:03:42.540Z"},"containers":{"cna":{"title":"PolarLearn's unvalidated vote direction allows vote count manipulation","descriptions":[{"lang":"en","value":"PolarLearn is a free and open-source learning program. Prior to version 0-PRERELEASE-15, the vote API route (`POST /api/v1/forum/vote`) trusts the JSON body’s `direction` value without runtime validation. TypeScript types are not enforced at runtime, so an attacker can send arbitrary strings (e.g., `\"x\"`) as `direction`. Downstream (`VoteServer`) treats any non-`\"up\"` and non-`null` value as a downvote and persists the invalid value in `votes_data`. This can be exploited to bypass intended business logic. Version 0-PRERELEASE-15 fixes the vulnerability."}],"affected":[{"vendor":"polarnl","product":"PolarLearn","versions":[{"version":"< 0-PRERELEASE-15","status":"affected"}]}],"references":[{"url":"https://github.com/polarnl/PolarLearn/security/advisories/GHSA-ghpx-5w2p-p3qp","name":"https://github.com/polarnl/PolarLearn/security/advisories/GHSA-ghpx-5w2p-p3qp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/polarnl/PolarLearn/commit/e6227d94d0e53e854f6a46480db8cd1051184d41","name":"https://github.com/polarnl/PolarLearn/commit/e6227d94d0e53e854f6a46480db8cd1051184d41","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.1,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","lang":"en","description":"CWE-20: Improper Input Validation","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-01-29T22:06:37.224Z"},"source":{"advisory":"GHSA-ghpx-5w2p-p3qp","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-01-30T14:37:03.172573Z","id":"CVE-2026-25126","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-02-02T16:34:07.949Z"}}]}}}