Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agent: set content type header explicitly #24489

Merged
merged 4 commits into from
Nov 20, 2024
Merged

agent: set content type header explicitly #24489

merged 4 commits into from
Nov 20, 2024

Conversation

pkazmierczak
Copy link
Contributor

@pkazmierczak pkazmierczak commented Nov 19, 2024

This PR addresses an XSS vulnerability where Nomad agents wouldn't explicitly set content type headers for error responses.

Internal ref: https://hashicorp.atlassian.net/browse/SECVULN-14567

@pkazmierczak pkazmierczak added theme/security backport/ent/1.8.x+ent Changes are backported to 1.8.x+ent backport/1.9.x backport to 1.9.x release line backport/ent/1.7.x+ent Changes are backported to 1.7.x+ent labels Nov 19, 2024
@pkazmierczak pkazmierczak self-assigned this Nov 19, 2024
@pkazmierczak pkazmierczak added this to the 1.9.x milestone Nov 19, 2024
command/agent/http.go Outdated Show resolved Hide resolved
@pkazmierczak pkazmierczak merged commit 9c5078f into main Nov 20, 2024
26 checks passed
@pkazmierczak pkazmierczak deleted the f-content-header branch November 20, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/ent/1.7.x+ent Changes are backported to 1.7.x+ent backport/ent/1.8.x+ent Changes are backported to 1.8.x+ent backport/1.9.x backport to 1.9.x release line theme/security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants