Skip to content

False positive G705: XSS via taint analysis #1638

@mholt

Description

@mholt

This code:

	w := tabwriter.NewWriter(os.Stdout, 0, 0, 1, ' ', 0)
	fmt.Fprintln(w, argsToDisplay...) // <-- G705 ?

produces a G705, "cross-site scripting"? But it is writing to the OS stdout. Am I missing something? 😅

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions