Skip to content

chore(deps): bump svglib from 1.5.1 to 2.3.1 in /llama-index-integrations/readers/llama-index-readers-confluence - #785

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/uv/llama-index-integrations/readers/llama-index-readers-confluence/svglib-2.3.1
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/uv/llama-index-integrations/readers/llama-index-readers-confluence/svglib-2.3.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 20, 2026

Copy link
Copy Markdown

Bumps svglib from 1.5.1 to 2.3.1.

Release notes

Sourced from svglib's releases.

svglib v2.3.1

Security

  • Rendering an SVG could be made to take exponential time and memory through nested <use> elements, where each level references a group containing many <use> elements of the previous level (CWE-400, GHSA-555j-qj3j-c8jv). renderUse() now stops after MAX_USE_EXPANSIONS (10,000) expansions per document, logs one error and skips the remaining <use> elements. The budget is shared with the renderers of external SVG files, so referencing many external files does not reset it.

svglib 2.3.0

Security

  • External <image>/<use> references can no longer escape the document's own directory. xlink_href_target() joined the reference onto the source directory and only checked os.access(), so an absolute reference discarded that directory and .. climbed above it, letting an untrusted SVG name any file the process could read (CWE-22, GHSA-2p5c-8vcc-4rcw). Absolute references are now refused, and the new opt-in external_reference_root on svg2rlg()/SvgRenderer confines resolution to a trusted directory, propagated into nested external-SVG renderers. Relative references, including .., keep working by default.

  • The svg2pdf command line tool now sets external_reference_root to the input file's own directory, since a file converted from the command line is routinely one the user did not author. Pass -R/--external-root with a parent directory to allow shared assets, or / to allow any relative reference. Library callers are unaffected: the default stays None.

svglib 2.2.0

Tooling and housekeeping

  • Modernized type annotations across src/svglib/ and tests/ to use PEP 585 builtin generics (list[...], dict[...], tuple[...], set[...]) instead of typing.List/Dict/Tuple/Set, and simplified a few emptiness/membership checks (not points instead of len(points) == 0, a set literal instead of a list for in checks). No behavior change.
  • Silenced a UserWarning from test_convert_pdf_png that came from ReportLab's own renderPM.drawImage, not from svglib: it reopens a <image> file referenced by path and converts it straight to RGB without normalizing palette-with-transparency PNGs first, unlike svglib's own handling of base64-embedded images. The referenced PNG (a dedicated tRNS-chunk test fixture) still renders correctly; there was nothing to fix in svglib's output.

Fixed

  • font-size no longer has PX_TO_PT applied twice. The viewport group

... (truncated)

Changelog

Sourced from svglib's changelog.

2.3.1 (2026-10-22)

Security

  • Rendering an SVG could be made to take exponential time and memory through nested <use> elements, where each level references a group containing many <use> elements of the previous level (CWE-400, GHSA-555j-qj3j-c8jv). renderUse() now stops after MAX_USE_EXPANSIONS (10,000) expansions per document, logs one error and skips the remaining <use> elements. The budget is shared with the renderers of external SVG files, so referencing many external files does not reset it.

2.3.0 (2026-10-05)

Security

  • External <image>/<use> references can no longer escape the document's own directory. xlink_href_target() joined the reference onto the source directory and only checked os.access(), so an absolute reference discarded that directory and .. climbed above it, letting an untrusted SVG name any file the process could read (CWE-22, GHSA-2p5c-8vcc-4rcw). Absolute references are now refused, and the new opt-in external_reference_root on svg2rlg()/SvgRenderer confines resolution to a trusted directory, propagated into nested external-SVG renderers. Relative references, including .., keep working by default.

  • The svg2pdf command line tool now sets external_reference_root to the input file's own directory, since a file converted from the command line is routinely one the user did not author. Pass -R/--external-root with a parent directory to allow shared assets, or / to allow any relative reference. Library callers are unaffected: the default stays None.

2.2.0 (2026-08-14)

Tooling and housekeeping

  • Modernized type annotations across src/svglib/ and tests/ to use PEP 585 builtin generics (list[...], dict[...], tuple[...], set[...]) instead of typing.List/Dict/Tuple/Set, and simplified a few emptiness/membership checks (not points instead of len(points) == 0, a set literal instead of a list for in checks). No behavior change.
  • Silenced a UserWarning from test_convert_pdf_png that came from ReportLab's own renderPM.drawImage, not from svglib: it reopens a <image> file referenced by path and converts it straight to RGB without normalizing palette-with-transparency PNGs first, unlike svglib's own handling of base64-embedded images. The referenced PNG (a dedicated tRNS-chunk test fixture) still renders correctly; there was nothing to fix in svglib's output.

Fixed

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [svglib](https://github.com/deeplook/svglib) from 1.5.1 to 2.3.1.
- [Release notes](https://github.com/deeplook/svglib/releases)
- [Changelog](https://github.com/deeplook/svglib/blob/main/CHANGELOG.md)
- [Commits](deeplook/svglib@v1.5.1...v2.3.1)

---
updated-dependencies:
- dependency-name: svglib
  dependency-version: 2.3.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Nov 20, 2026
@srbutler srbutler closed this Nov 23, 2026
@dependabot @github

dependabot Bot commented on behalf of github Nov 23, 2026

Copy link
Copy Markdown
Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/uv/llama-index-integrations/readers/llama-index-readers-confluence/svglib-2.3.1 branch November 23, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant