projectdiscovery/nuclei · error
no boundary found in the content type
Error message
no boundary found in the content type
What it means
Error "no boundary found in the content type" thrown in projectdiscovery/nuclei.
Source
Thrown at pkg/fuzz/dataformat/multipart.go:148
return true
})
if Itererr != nil {
return "", Itererr
}
_ = w.Close()
return b.String(), nil
}
// ParseBoundary parses the boundary from the content type
func (m *MultiPartForm) ParseBoundary(contentType string) error {
_, params, err := mime.ParseMediaType(contentType)
if err != nil {
return err
}
m.boundary = params["boundary"]
if m.boundary == "" {
return fmt.Errorf("no boundary found in the content type")
}
// NOTE(dwisiswant0): boundary cannot exceed 70 characters according to
// RFC-2046.
if len(m.boundary) > 70 {
return fmt.Errorf("boundary exceeds maximum length of 70 characters")
}
return nil
}
// Decode decodes the data from MultiPartForm format
func (m *MultiPartForm) Decode(data string) (KV, error) {
if m.boundary == "" {
return KV{}, fmt.Errorf("boundary not set, call ParseBoundary first")
}
// Create a buffer from the string dataView on GitHub (pinned to 265b3a3dec)
When it happens
Trigger: Thrown at pkg/fuzz/dataformat/multipart.go:148 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of projectdiscovery/nuclei@265b3a3dec (2026-08-15).
Data as JSON: /api/errors/6826194b44f29a29.
Report an issue: GitHub.