projectdiscovery/nuclei · error
boundary exceeds maximum length of 70 characters
Error message
boundary exceeds maximum length of 70 characters
What it means
Error "boundary exceeds maximum length of 70 characters" thrown in projectdiscovery/nuclei.
Source
Thrown at pkg/fuzz/dataformat/multipart.go:154
_ = 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 data
b := bytes.NewBufferString(data)
r := multipart.NewReader(b, m.boundary)
form, err := r.ReadForm(32 << 20) // 32MB is the max memory used to parse the form
if err != nil {
return KV{}, errView on GitHub (pinned to 265b3a3dec)
When it happens
Trigger: Thrown at pkg/fuzz/dataformat/multipart.go:154 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/7e587eb11f7343dd.
Report an issue: GitHub.