Skip to content

Commit

Permalink
Merge pull request #352 from vasiliadi/feature/defusedxml
Browse files Browse the repository at this point in the history
[security] defusedxml.ElementTree instead of xml.etree.ElementTree
  • Loading branch information
jdepoix authored Nov 18, 2024
2 parents ceda81b + b473e69 commit 729e804
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
15 changes: 13 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ precommit.shell = "poe format && poe lint && poe coverage"
[tool.poetry.dependencies]
python = ">=3.8,<3.14"
requests = "*"
defusedxml = "^0.7.1"

[tool.poetry.group.test]
optional = true
Expand Down
2 changes: 1 addition & 1 deletion youtube_transcript_api/_transcripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import json

from xml.etree import ElementTree
from defusedxml import ElementTree

import re

Expand Down

0 comments on commit 729e804

Please sign in to comment.