Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/pinchtab/pinchtab
  4. ›
  5. CVE-2026-33622

CVE-2026-33622: A PinchTab Security Policy Bypass in /wait Allows Arbitrary JavaScript Execution

March 24, 2026 (updated March 27, 2026)

PinchTab v0.8.3 through v0.8.5 allow arbitrary JavaScript execution through POST /wait and POST /tabs/{id}/wait when the request uses fn mode, even if security.allowEvaluate is disabled.

POST /evaluate correctly enforces the security.allowEvaluate guard, which is disabled by default. However, in the affected releases, POST /wait accepted a user-controlled fn expression, embedded it directly into executable JavaScript, and evaluated it in the browser context without checking the same policy.

This is a security-policy bypass rather than a separate authentication bypass. Exploitation still requires authenticated API access, but a caller with the server token can execute arbitrary JavaScript in a tab context even when the operator explicitly disabled JavaScript evaluation.

The current worktree fixes this by applying the same policy boundary to fn mode in /wait that already exists on /evaluate, while preserving the non-code wait modes.

References

  • github.com/advisories/GHSA-w5pc-m664-r62v
  • github.com/pinchtab/pinchtab
  • github.com/pinchtab/pinchtab/security/advisories/GHSA-w5pc-m664-r62v
  • nvd.nist.gov/vuln/detail/CVE-2026-33622

Code Behaviors & Features

Detect and mitigate CVE-2026-33622 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.8.3

Solution

Unfortunately, there is no solution available yet.

Impact 7.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-284: Improper Access Control
  • CWE-693: Protection Mechanism Failure
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

go/github.com/pinchtab/pinchtab/CVE-2026-33622.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 11 May 2026 00:20:03 +0000.