Skip to content

Prevent raw bytes from JSON payloads from being written to a file#2442

Closed
abdullah-kasim wants to merge 1 commit intotrunkfrom
pltfrm-1052
Closed

Prevent raw bytes from JSON payloads from being written to a file#2442
abdullah-kasim wants to merge 1 commit intotrunkfrom
pltfrm-1052

Conversation

@abdullah-kasim
Copy link
Copy Markdown
Contributor

@abdullah-kasim abdullah-kasim commented Jul 2, 2025

Description

As per the title, just a quick filter to ensure that we escape bytes before writing it to a string by using JSON.stringify()

Changelog Description

Fixed

  • Prevent raw bytes from JSON payloads from being written to a file to prevent accidental execution.

Pull request checklist

New release checklist

Steps to Test

We apparently have no automated tests for this function. I'll write one.

… to a file to prevent files from turning into binaries.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 2, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Jul 2, 2025

@abdullah-kasim
Copy link
Copy Markdown
Contributor Author

All the URLs that this function deals with are trusted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant