Skip to content

deno: fix CVE-2023-28446#225898

Closed
06kellyjac wants to merge 1 commit into
NixOS:release-22.11from
06kellyjac:deno-22.11-patch
Closed

deno: fix CVE-2023-28446#225898
06kellyjac wants to merge 1 commit into
NixOS:release-22.11from
06kellyjac:deno-22.11-patch

Conversation

@06kellyjac
Copy link
Copy Markdown
Member

Description of changes

Fix GHSA-vq67-rp93-65qf on release channel
Similar to #224804

Can't just pull latest fixed because it would also require pulling in a new copy of rust. That could be an option to pull as a single attribute but that copy of rust only just made it to master.
This fix needed to be adapted from https://github.com/denoland/deno/commit/78d430103a8f6931154ddbbe19d36f3b8630286d.patch to work for the older copy of deno.

Need to adapt the POC (see GH sec advisory) to work for this copy of deno to ensure the issue is fixed.
Sadly no one from deno discord has responded to my request for adapting the POC

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@06kellyjac 06kellyjac mentioned this pull request Apr 12, 2023
12 tasks
@ofborg ofborg Bot added 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Apr 12, 2023
@06kellyjac 06kellyjac added the 1.severity: security Issues which raise a security issue, or PRs that fix one label Apr 12, 2023

cargoPatches = [
# resolved in 1.31.2
./CVE-2023-28446_escape_control_chars_backport.patch
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you link the upstream commit? I couldn't find it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is none. this was a backport of the commit linked in the PR description
I can put the original commit as a reference comment

(still waiting on some help from people familiar to adapt the POC to work for older deno to test this patch does work)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @levex

@06kellyjac
Copy link
Copy Markdown
Member Author

22.11 is EOL in just under 2 weeks and no one from the Deno community has stepped up to help test this manual backport of this patch so I'm just going to close this I think

@06kellyjac 06kellyjac closed this Jun 19, 2023
@06kellyjac 06kellyjac deleted the deno-22.11-patch branch October 17, 2025 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.severity: security Issues which raise a security issue, or PRs that fix one 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants