CVE-2026-40189: Goshs State Changing Handler Missing Acl Check

State-changing FileServer handler performs a filesystem-mutating operation (file create/open-for-write, remove, remove-all, mkdir, or multipart body read) without first calling fs.applyCustomAuth(...) to enforce the per-folder .goshs ACL/basic-auth policy. The read paths (doDir/doFile) gate access through findSpecialFile/findEffectiveACL + applyCustomAuth, b

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-40189-goshs-state-changing-handler-missing-acl-check --engine opengrep

Description

State-changing FileServer handler performs a filesystem-mutating operation (file create/open-for-write, remove, remove-all, mkdir, or multipart body read) without first calling fs.applyCustomAuth(...) to enforce the per-folder .goshs ACL/basic-auth policy. The read paths (doDir/doFile) gate access through findSpecialFile/findEffectiveACL + applyCustomAuth, b