The core of the vulnerability lies in the failure to validate user-supplied file paths before performing file system operations. The patch b041733473f95119dd539542a43c280737a8e460 clearly shows the addition of the validate_safe_path() function call in multiple locations where file paths are handled. Specifically, the upload_attachment methods in both the Confluence and Jira attachment mixins were missing this crucial validation, allowing an attacker to specify an absolute or relative path pointing to any file on the server. This file would then be read and uploaded as an attachment, exfiltrating its contents. A similar flaw existed in the _resolve_page_content function, where a content_file path was used to read page content directly from the disk without proper path validation, leading to the same arbitrary file read vulnerability. The fix involves confining all file path inputs to a safe, designated workspace directory by using the validate_safe_path utility.