Skip to content

[BUG] SARIF export fails validation #7313

@safejulian

Description

@safejulian

Is there an existing issue for this?

  • I have searched the existing issues.

Current Behavior

Running nuclei with -se filename.sarif generates a SARIF file.

Uploading the SARIF file to a GitHub repository works, but there isn't much information shown to the team.

Image

After uploading the generated file to Microsoft's SARIF validator to see what is missing, the validator shows some failing validation rules.

Image

Expected Behavior

Running nuclei with the -se filename.sarif option should generate a SARIF file that passes validation. This ensures that the findings in the SARIF file are easily readable after import (for example, in GitHub Advanced Security).

Steps To Reproduce

  1. Run nuclei -u https://honey.scanme.sh --tags misconfig -se report.sarif
  2. Upload report.sarif to the SARIF Validator
  3. Review findings

Relevant log output

Environment

- OS: MacOS 15.7.4
- Nuclei: v3.7.1 via homebrew
- Go:

Anything else?

I have PRs ready to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions