Skip to content

Fix path traversal in manifest export packaging - #1015

Merged
Zheng (zhngx1) merged 2 commits into
masterfrom
user/zhengx/fix-path
Sep 9, 2026
Merged

Fix path traversal in manifest export packaging#1015
Zheng (zhngx1) merged 2 commits into
masterfrom
user/zhengx/fix-path

Conversation

@zhngx1

Copy link
Copy Markdown
Contributor

Summary

Fixes a path traversal / information disclosure vulnerability in
office-addin-manifest's export packaging. The addZipFile function in
export.ts joined attacker-controllable manifest file fields to the manifest
directory without validating for .. traversal or absolute paths (only
https:// URLs were rejected).

Fix

addZipFile now resolves the target path and verifies it stays within the
manifest directory before reading:

  • Reject any path that resolves outside the manifest directory (.. escape).

@zhngx1
Zheng (zhngx1) requested a review from a team as a code owner September 8, 2026 18:53
@zhngx1
Zheng (zhngx1) merged commit cabbe07 into master Sep 9, 2026
6 checks passed
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.

3 participants