Polarnl PolarLearn
PolarLearn's unvalidated vote direction allows vote count manipulation
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0-PRERELEASE-15
Fixed in 0-PRERELEASE-15
Mitigation
Upgrade PolarLearn to 0-PRERELEASE-15 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 1.4 days after publication; not in CISA KEV. First PoC: Jvr2022/CVE-2026-25126 (created 31 Jan 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Jvr2022/CVE-2026-25126 | 31 Jan 2026 +1.4 d | 1 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /api/v1/forum/vote";
- Key headers
Cookie: COOKIE";- Body markers
"postId":"POST ID";""direction":"invalid_direction""direction"inapplication/json- PoC User-Agent
Security-Testing-PoC- Seen in
- 1 repo: Jvr2022/CVE-2026-25126
- Evidence
- Jvr2022/CVE-2026-25126/poc.js:9 Jvr2022/CVE-2026-25126/poc.js:22
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/v1/forum/vote";(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-25126 polarnl PolarLearn exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v1/forum/vote|22||3b|"; http.header; content:"Cookie: COOKIE|22||3b|"; nocase; http.request_body; content:"|22|postId|22|:|22|POST ID|22||3b||22|"; http.request_body; content:"|22|direction|22|:|22|invalid_direction|22|"; http.request_body; content:"|22|direction|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-25126; classtype:web-application-attack; sid:9259184; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: polarnl PolarLearn exploit attempt (CVE-2026-25126)
id: gg-pocmon-cve-2026-25126-9259184
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-25126. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-25126
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v1/forum/vote";'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.25126