# Unsafe Type Assertion Without Ok Check - ID: go-unsafe-type-assertion - Severity: MEDIUM - CWE: CWE-476 (CWE-476) - Languages: Go ## Description Type assertion without two-value form can panic at runtime. ## Remediation Use the two-value form of type assertion to handle failures gracefully. ```go result, ok := data.(map[string]interface{}) if !ok { return errors.New("invalid data type") } ``` Learn more: https://shoulder.dev/learn/go/cwe-476/unsafe-type-assertion ## Documentation [object Object] ## Related Rules - **Non-Null Assertion Without Null Check** [LOW]: