{"record":{"id":"4e257e8cadb459a9","repo":"projectdiscovery/nuclei","slug":"s-invalid-raw-cookie-in-cookiesauth-s","errorCode":null,"errorMessage":"[%s] invalid raw cookie in cookiesAuth: %s","messagePattern":"\\[(.+?)\\] invalid raw cookie in cookiesAuth: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/authprovider/authx/dynamic.go","lineNumber":184,"sourceCode":"\t}\n\n\t// check username, password and token\n\tif strings.Contains(secret.Username, \"{{\") {\n\t\tsecret.Username = replacer.Replace(secret.Username, d.Extracted)\n\t}\n\tif strings.Contains(secret.Password, \"{{\") {\n\t\tsecret.Password = replacer.Replace(secret.Password, d.Extracted)\n\t}\n\tif strings.Contains(secret.Token, \"{{\") {\n\t\tsecret.Token = replacer.Replace(secret.Token, d.Extracted)\n\t}\n\n\t// now attempt to parse the cookies\n\tsecret.skipCookieParse = false\n\tfor i, cookie := range secret.Cookies {\n\t\tif cookie.Raw != \"\" {\n\t\t\tif err := cookie.Parse(); err != nil {\n\t\t\t\treturn fmt.Errorf(\"[%s] invalid raw cookie in cookiesAuth: %s\", d.TemplatePath, err)\n\t\t\t}\n\t\t\tsecret.Cookies[i] = cookie\n\t\t}\n\t}\n\treturn nil\n}\n\n// GetStrategies returns the auth strategies for the dynamic secret\nfunc (d *Dynamic) GetStrategies() []AuthStrategy {\n\t// Ensure fetch has completed before returning strategies.\n\t// Fetch errors are treated as non-fatal here so a failed dynamic auth fetch\n\t// does not terminate the entire scan process.\n\t_ = d.Fetch(false)\n\n\tif d.fetchState != nil && d.fetchState.err != nil {\n\t\treturn nil\n\t}\n\tvar strategies []AuthStrategy","sourceCodeStart":166,"sourceCodeEnd":202,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/authprovider/authx/dynamic.go#L166-L202","documentation":"Error \"[%s] invalid raw cookie in cookiesAuth: %s\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/authprovider/authx/dynamic.go:184 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"265b3a3dec374741614e342f813c10f8b38d2bb7","analyzedAt":"2026-08-15T20:05:51.855Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}