Skip to content

Dependabot fixes for tar packages and integrity checking in cdn files#24

Merged
joabech merged 2 commits intoanalogdevicesinc:mainfrom
joabech:dependabot-fixes-april-13-2
Apr 13, 2026
Merged

Dependabot fixes for tar packages and integrity checking in cdn files#24
joabech merged 2 commits intoanalogdevicesinc:mainfrom
joabech:dependabot-fixes-april-13-2

Conversation

@joabech
Copy link
Copy Markdown
Contributor

@joabech joabech commented Apr 13, 2026

Fix Dependabot and code scanning issues.

joabech added 2 commits April 13, 2026 13:32
Update the tar direct dependency from 0.4 to 0.4.45 in dsdk-cli to fix
two security vulnerabilities:

CVE-2025-62518 (PAX size header bypass): The tar crate skipped the PAX
size header when the base header size was nonzero, causing file sizes to
be parsed differently than other parsers like Go's archive/tar. An attacker
can exploit this to create archives that extract differently depending on
which tool unpacks them.

Symlink permission bypass: The unpack_dir function checked fs::metadata()
(which follows symlinks) to see if a path was an existing directory. A crafted
tarball with a symlink followed by a directory with the same name tricks the
code into calling chmod on the symlink target, allowing attackers to change
permissions on arbitrary directories outside the extraction root.

Fixes analogdevicesinc#5, analogdevicesinc#6

Signed-off-by: Joakim Bech <Joakim.Bech@analog.com>
Add Subresource Integrity (SRI) attributes and crossorigin /
referrerpolicy to the two GSAP script tags from cdnjs, as required by
GitHub's CodeQL scanner.

SRI ensures the browser verifies scripts match a cryptographic hash
before executing them, preventing supply-chain attacks where a CDN might
serve tampered code.

Fixes analogdevicesinc#10, analogdevicesinc#11

Signed-off-by: Joakim Bech <Joakim.Bech@analog.com>
@joabech joabech changed the title Dependabot fixes april 13 2 Dependabot fixes for tar packages Apr 13, 2026
@joabech joabech changed the title Dependabot fixes for tar packages Dependabot fixes for tar packages and integrity checking in cdn files Apr 13, 2026
@joabech joabech merged commit 6d03cf7 into analogdevicesinc:main Apr 13, 2026
8 checks passed
@joabech joabech deleted the dependabot-fixes-april-13-2 branch April 13, 2026 11:40
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