Commit 763050f
committed
fix(cdk): upgrade unstructured from 0.10.27 to 0.18.18 to fix CVE-2025-64712
Upgrades the unstructured library to address critical path traversal
vulnerability GHSA-gm8q-m8mv-jj5m (CVSS 9.8) in partition_msg.
Changes:
- Update unstructured dependency from 0.10.27 to 0.18.18
- Add pi-heif dependency required by new unstructured version
- Adapt unstructured_parser.py to new API:
- Replace removed EXT_TO_FILETYPE/STR_TO_FILETYPE/FILETYPE_TO_MIMETYPE
with FileType.from_extension()/from_mime_type()/mime_type property
- Update detect_filetype() parameter from filename= to file_path=
- Update test mocks to match new API surface
Co-Authored-By: unknown <>1 parent e9144e2 commit 763050f
4 files changed
Lines changed: 340 additions & 104 deletions
File tree
- airbyte_cdk/sources/file_based/file_types
- unit_tests/sources/file_based/file_types
Lines changed: 12 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 15 | + | |
22 | 16 | | |
23 | 17 | | |
24 | 18 | | |
| |||
335 | 329 | | |
336 | 330 | | |
337 | 331 | | |
338 | | - | |
| 332 | + | |
339 | 333 | | |
340 | 334 | | |
341 | 335 | | |
| |||
405 | 399 | | |
406 | 400 | | |
407 | 401 | | |
408 | | - | |
409 | | - | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
410 | 407 | | |
411 | 408 | | |
412 | 409 | | |
| |||
418 | 415 | | |
419 | 416 | | |
420 | 417 | | |
421 | | - | |
| 418 | + | |
422 | 419 | | |
423 | 420 | | |
424 | 421 | | |
| |||
434 | 431 | | |
435 | 432 | | |
436 | 433 | | |
437 | | - | |
438 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
439 | 438 | | |
440 | 439 | | |
441 | 440 | | |
| |||
0 commit comments