{"id":17789605,"url":"https://github.com/clarkio/pdfjs-vuln-demo","last_synced_at":"2025-09-09T02:32:49.992Z","repository":{"id":241582573,"uuid":"804608693","full_name":"clarkio/pdfjs-vuln-demo","owner":"clarkio","description":"This project is intended to serve as a proof of concept to demonstrate exploiting the vulnerability in the PDF.js (pdfjs-dist) library reported in CVE-2024-4367","archived":false,"fork":false,"pushed_at":"2024-11-10T04:17:31.000Z","size":1330,"stargazers_count":3,"open_issues_count":11,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-28T08:20:31.203Z","etag":null,"topics":["application-security","appsec","astro","astrojs","pdf","pdfjs","pdfjs-dist","react","security","svelte","vue","vuejs","web"],"latest_commit_sha":null,"homepage":"","language":"Astro","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clarkio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-22T23:18:20.000Z","updated_at":"2024-08-17T19:52:12.000Z","dependencies_parsed_at":"2024-05-29T05:51:44.086Z","dependency_job_id":"5a12ccb9-8b54-446d-b1dc-3e3642d3969f","html_url":"https://github.com/clarkio/pdfjs-vuln-demo","commit_stats":null,"previous_names":["clarkio/pdfjs-vuln-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarkio%2Fpdfjs-vuln-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarkio%2Fpdfjs-vuln-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarkio%2Fpdfjs-vuln-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarkio%2Fpdfjs-vuln-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clarkio","download_url":"https://codeload.github.com/clarkio/pdfjs-vuln-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232382600,"owners_count":18514795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["application-security","appsec","astro","astrojs","pdf","pdfjs","pdfjs-dist","react","security","svelte","vue","vuejs","web"],"created_at":"2024-10-27T10:35:57.605Z","updated_at":"2025-01-03T19:20:17.546Z","avatar_url":"https://github.com/clarkio.png","language":"Astro","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDF.js Vulnerability Demo Project\nThis project is intended to serve as a proof of concept to demonstrate exploiting the vulnerability in the PDF.js (pdfjs-dist) library reported in [CVE-2024-4367](https://nvd.nist.gov/vuln/detail/CVE-2024-4367)\n\n## Getting Things Running\n- Fork and clone from this repository\n- `npm install`\n- `npm run dev`\n\n## Testing Things Out\n- First go to [http://localhost:4321/](http://localhost:4321/)\n- Choose whichever frontend framework component you want to test out (react, vue, svelte) by clicking on its corresponding card\n- Make sure the sample PDF (not exploiting the vulnerability) loads up\n- You can find and analyze all the sample PDFs in the `/public` directory. Each one attempts to demonstrate different ways to exploit the vulnerability.\n- When ready to test out a PDF that does exploit the vulnerability change the PDF file that the component is pointing to with the one you want to try\n\n  For Example:\n  ```javascript\n  // src/components/ReactPdfViewer.jsx\n  \u003cDocument\n    file='/ex1.pdf'\n    onLoadSuccess={onDocumentLoadSuccess}\n    options={{}}\u003e\n  ```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarkio%2Fpdfjs-vuln-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclarkio%2Fpdfjs-vuln-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarkio%2Fpdfjs-vuln-demo/lists"}