{
  "id": "CVE-2026-25126",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-25126",
  "published_at": "2026-01-29T22:06:37.224Z",
  "title": "PolarLearn's unvalidated vote direction allows vote count manipulation",
  "vendor": "polarnl",
  "product": "PolarLearn",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-01-31T08:07:44Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 1.4,
    "repo": "Jvr2022/CVE-2026-25126",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-20",
  "cpes": [
    "cpe:2.3:a:polarlearn:polarlearn:-:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [
    {
      "repo": "Jvr2022/CVE-2026-25126",
      "url": "https://github.com/Jvr2022/CVE-2026-25126",
      "created_at": "2026-01-31T08:07:44Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-07-10T14:13:42Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "polarnl",
        "product": "PolarLearn",
        "ranges": [
          "\u003c 0-PRERELEASE-15"
        ],
        "fixed_in": [
          "0-PRERELEASE-15"
        ]
      }
    ],
    "upgrade": [
      "Upgrade PolarLearn to 0-PRERELEASE-15 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/polarnl/PolarLearn/security/advisories/GHSA-ghpx-5w2p-p3qp"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/polarnl/PolarLearn/commit/e6227d94d0e53e854f6a46480db8cd1051184d41"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/api/v1/forum/vote\";",
      "headers": [
        {
          "name": "Cookie",
          "value": "COOKIE\";"
        }
      ],
      "body_markers": [
        "\"postId\":\"POST ID\";\"",
        "\"direction\":\"invalid_direction\"",
        "\"direction\""
      ],
      "content_type": "application/json",
      "user_agents": [
        "Security-Testing-PoC"
      ],
      "protocol": "https",
      "repos": [
        "Jvr2022/CVE-2026-25126"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Jvr2022/CVE-2026-25126/poc.js:9",
        "Jvr2022/CVE-2026-25126/poc.js:22"
      ]
    }
  ],
  "rules": []
}
