pulp-python 3.36.3__tar.gz → 3.36.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. {pulp_python-3.36.3 → pulp_python-3.36.5}/CHANGES.md +16 -0
  2. {pulp_python-3.36.3 → pulp_python-3.36.5}/PKG-INFO +1 -1
  3. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/__init__.py +1 -1
  4. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/utils.py +4 -4
  5. pulp_python-3.36.5/pulp_python/tests/unit/test_simple_templates.py +56 -0
  6. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python.egg-info/PKG-INFO +1 -1
  7. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python.egg-info/SOURCES.txt +2 -1
  8. {pulp_python-3.36.3 → pulp_python-3.36.5}/pyproject.toml +2 -2
  9. {pulp_python-3.36.3 → pulp_python-3.36.5}/COMMITMENT +0 -0
  10. {pulp_python-3.36.3 → pulp_python-3.36.5}/COPYRIGHT +0 -0
  11. {pulp_python-3.36.3 → pulp_python-3.36.5}/LICENSE +0 -0
  12. {pulp_python-3.36.3 → pulp_python-3.36.5}/MANIFEST.in +0 -0
  13. {pulp_python-3.36.3 → pulp_python-3.36.5}/README.md +0 -0
  14. {pulp_python-3.36.3 → pulp_python-3.36.5}/functest_requirements.txt +0 -0
  15. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/__init__.py +0 -0
  16. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/cache.py +0 -0
  17. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/exceptions.py +0 -0
  18. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/global_access_conditions.py +0 -0
  19. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/management/__init__.py +0 -0
  20. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/management/commands/__init__.py +0 -0
  21. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/management/commands/repair-python-metadata.py +0 -0
  22. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0001_initial.py +0 -0
  23. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0001_squashed_0010_update_json_field.py +0 -0
  24. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0002_pythonpackagecontent_python_version.py +0 -0
  25. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0003_new_sync_filters.py +0 -0
  26. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0004_DATA_swap_distribution_model.py +0 -0
  27. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0005_pythonpackagecontent_sha256.py +0 -0
  28. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0006_pythonrepository_autopublish.py +0 -0
  29. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0007_pythonpackagecontent_mv-2-1.py +0 -0
  30. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0008_pythonpackagecontent_unique_sha256.py +0 -0
  31. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0009_pythondistribution_allow_uploads.py +0 -0
  32. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0010_update_json_field.py +0 -0
  33. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0011_alter_pythondistribution_distribution_ptr_and_more.py +0 -0
  34. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0012_add_domain.py +0 -0
  35. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0013_add_rbac_permissions.py +0 -0
  36. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0014_pythonpackagecontent_dynamic_and_more.py +0 -0
  37. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0015_alter_pythonpackagecontent_options.py +0 -0
  38. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0016_pythonpackagecontent_metadata_sha256.py +0 -0
  39. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0017_pythonpackagecontent_size.py +0 -0
  40. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0018_packageprovenance.py +0 -0
  41. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0019_create_missing_metadata_artifacts.py +0 -0
  42. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0020_pythonpackagecontent_name_normalized.py +0 -0
  43. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0021_pythonrepository_upload_duplicate_filenames.py +0 -0
  44. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0022_pythonblocklistentry.py +0 -0
  45. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0023_packageyank.py +0 -0
  46. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/0024_pythonrepository_error_on_reject.py +0 -0
  47. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/migrations/__init__.py +0 -0
  48. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/modelresource.py +0 -0
  49. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/models.py +0 -0
  50. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/provenance.py +0 -0
  51. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/pypi/__init__.py +0 -0
  52. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/pypi/feeds.py +0 -0
  53. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/pypi/serializers.py +0 -0
  54. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/pypi/views.py +0 -0
  55. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/replica.py +0 -0
  56. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/serializers.py +0 -0
  57. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/settings.py +0 -0
  58. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/tasks/__init__.py +0 -0
  59. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/tasks/publish.py +0 -0
  60. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/tasks/repair.py +0 -0
  61. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/tasks/sync.py +0 -0
  62. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/tasks/upload.py +0 -0
  63. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/tasks/vulnerability_report.py +0 -0
  64. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/tasks/yank.py +0 -0
  65. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/urls.py +0 -0
  66. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/viewsets.py +0 -0
  67. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/webserver_snippets/__init__.py +0 -0
  68. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/webserver_snippets/apache.conf +0 -0
  69. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/app/webserver_snippets/nginx.conf +0 -0
  70. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/pytest_plugin.py +0 -0
  71. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/__init__.py +0 -0
  72. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/__init__.py +0 -0
  73. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/__init__.py +0 -0
  74. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_attestations.py +0 -0
  75. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_auto_publish.py +0 -0
  76. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_blocklist.py +0 -0
  77. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_consume_content.py +0 -0
  78. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_crud_content_unit.py +0 -0
  79. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_crud_publications.py +0 -0
  80. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_crud_remotes.py +0 -0
  81. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_domains.py +0 -0
  82. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_download_content.py +0 -0
  83. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_export_import.py +0 -0
  84. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_full_mirror.py +0 -0
  85. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_pypi_apis.py +0 -0
  86. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_pypi_feeds.py +0 -0
  87. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_pypi_simple_api.py +0 -0
  88. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_rbac.py +0 -0
  89. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_repair.py +0 -0
  90. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_simple_cache.py +0 -0
  91. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_sync.py +0 -0
  92. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_upload.py +0 -0
  93. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_version_specifier_filter.py +0 -0
  94. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_vulnerability_report.py +0 -0
  95. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/api/test_yank.py +0 -0
  96. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/constants.py +0 -0
  97. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/functional/utils.py +0 -0
  98. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/unit/__init__.py +0 -0
  99. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/unit/test_feeds.py +0 -0
  100. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python/tests/unit/test_models.py +0 -0
  101. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python.egg-info/dependency_links.txt +0 -0
  102. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python.egg-info/entry_points.txt +0 -0
  103. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python.egg-info/requires.txt +0 -0
  104. {pulp_python-3.36.3 → pulp_python-3.36.5}/pulp_python.egg-info/top_level.txt +0 -0
  105. {pulp_python-3.36.3 → pulp_python-3.36.5}/setup.cfg +0 -0
  106. {pulp_python-3.36.3 → pulp_python-3.36.5}/test_requirements.txt +0 -0
  107. {pulp_python-3.36.3 → pulp_python-3.36.5}/unittest_requirements.txt +0 -0
@@ -8,6 +8,22 @@
8
8
 
9
9
  [//]: # (towncrier release notes start)
10
10
 
11
+ ## 3.36.5 (2026-11-02) {: #3.36.5 }
12
+
13
+ #### Bugfixes {: #3.36.5-bugfix }
14
+
15
+ - Remote include and exclude ranges accept matching prerelease versions without deprecation warnings.
16
+
17
+ ---
18
+
19
+ ## 3.36.4 (2026-10-08) {: #3.36.4 }
20
+
21
+ #### Bugfixes {: #3.36.4-bugfix }
22
+
23
+ - Fixed quoting mistake in simple html index pages that can lead to a possible XSS attack given a carefully crafted package name. CVE-2026-103871
24
+
25
+ ---
26
+
11
27
  ## 3.36.3 (2026-10-07) {: #3.36.3 }
12
28
 
13
29
  #### Bugfixes {: #3.36.3-bugfix }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulp-python
3
- Version: 3.36.3
3
+ Version: 3.36.5
4
4
  Summary: pulp-python plugin for the Pulp Project
5
5
  Author-email: Pulp Team <pulp-list@redhat.com>
6
6
  Project-URL: Homepage, https://pulpproject.org
@@ -12,7 +12,7 @@ class PulpPythonPluginAppConfig(PulpPluginAppConfig):
12
12
 
13
13
  name = "pulp_python.app"
14
14
  label = "python"
15
- version = "3.36.3"
15
+ version = "3.36.5"
16
16
  python_package_name = "pulp-python"
17
17
  domain_compatible = True
18
18
 
@@ -556,7 +556,7 @@ def python_content_to_download_info(content, base_path, domain=None):
556
556
 
557
557
  def write_simple_index(project_names):
558
558
  """Writes the simple index."""
559
- simple = Template(simple_index_template)
559
+ simple = Template(simple_index_template, autoescape=True)
560
560
  context = {
561
561
  "SIMPLE_API_VERSION": SIMPLE_API_VERSION,
562
562
  "projects": ((x, canonicalize_name(x)) for x in project_names),
@@ -645,12 +645,12 @@ class PackageIncludeFilter:
645
645
  self._filter_excludes = self._parse_packages(self.remote.excludes)
646
646
 
647
647
  def _parse_packages(self, packages):
648
+ """Group requirements by project and whether they specify a version range."""
648
649
  config = defaultdict(lambda: defaultdict(list))
649
650
  for value in packages:
650
651
  requirement = Requirement(value)
651
652
  requirement.name = canonicalize_name(requirement.name)
652
653
  if requirement.specifier:
653
- requirement.specifier.prereleases = True
654
654
  config["range"][requirement.name].append(requirement)
655
655
  else:
656
656
  config["full"][requirement.name].append(requirement)
@@ -685,7 +685,7 @@ class PackageIncludeFilter:
685
685
  include_range = self._filter_includes.get("range", {})
686
686
  if project_name in include_range:
687
687
  for req in include_range[project_name]:
688
- if version in req.specifier:
688
+ if req.specifier.contains(version, prereleases=True):
689
689
  break
690
690
  else:
691
691
  return False
@@ -693,7 +693,7 @@ class PackageIncludeFilter:
693
693
  exclude_range = self._filter_excludes.get("range", {})
694
694
  if project_name in exclude_range:
695
695
  for req in exclude_range[project_name]:
696
- if version in req.specifier:
696
+ if req.specifier.contains(version, prereleases=True):
697
697
  return False
698
698
 
699
699
  return True
@@ -0,0 +1,56 @@
1
+ import pytest
2
+
3
+ from pulp_python.app.utils import write_simple_detail, write_simple_index
4
+
5
+ XSS_VECTORS = [
6
+ ('<script>alert("xss")</script>', "&lt;script&gt;"),
7
+ ("<img src=x onerror=alert(1)>", "&lt;img"),
8
+ ('" onclick="alert(1)"', "&#34;"),
9
+ ("a&b", "a&amp;b"),
10
+ ]
11
+
12
+
13
+ def test_index_renders_valid_names():
14
+ """Test that valid package names render correctly in the simple index page."""
15
+ page = write_simple_index(["aprojectname", "under_score", "da-sh", "ungefährlich"])
16
+ assert "aprojectname" in page
17
+ assert "under-score" in page
18
+ assert "da-sh" in page
19
+ assert "ungefährlich" in page
20
+
21
+
22
+ @pytest.mark.parametrize("name,escaped", XSS_VECTORS)
23
+ def test_index_escapes_html(name, escaped):
24
+ """Test that autoescape neutralizes HTML injection in the simple index page."""
25
+ page = write_simple_index([name])
26
+ assert name not in page
27
+ assert escaped in page
28
+
29
+
30
+ @pytest.mark.parametrize("name,escaped", XSS_VECTORS)
31
+ def test_detail_escapes_html(name, escaped):
32
+ """Test that autoescape neutralizes HTML injection in the simple detail page."""
33
+ page = write_simple_detail(name, [])
34
+ assert name not in page
35
+ assert escaped in page
36
+
37
+
38
+ def test_detail_escapes_package_fields():
39
+ """Test that autoescape neutralizes HTML injection in package metadata fields."""
40
+ packages = [
41
+ {
42
+ "filename": "<img src=x onerror=alert(1)>",
43
+ "url": 'http://evil.com/"><script>alert(1)</script>',
44
+ "sha256": "abc123",
45
+ "requires_python": None,
46
+ "yanked": False,
47
+ "yanked_reason": "",
48
+ "metadata_sha256": None,
49
+ "provenance": None,
50
+ }
51
+ ]
52
+ page = write_simple_detail("safe-name", packages)
53
+ assert "<img src=x onerror=alert(1)>" not in page
54
+ assert "&lt;img src=x onerror=alert(1)&gt;" in page
55
+ assert 'http://evil.com/"><script>alert(1)</script>' not in page
56
+ assert "http://evil.com/&#34;&gt;&lt;script&gt;alert(1)&lt;/script&gt;" in page
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulp-python
3
- Version: 3.36.3
3
+ Version: 3.36.5
4
4
  Summary: pulp-python plugin for the Pulp Project
5
5
  Author-email: Pulp Team <pulp-list@redhat.com>
6
6
  Project-URL: Homepage, https://pulpproject.org
@@ -101,4 +101,5 @@ pulp_python/tests/functional/api/test_vulnerability_report.py
101
101
  pulp_python/tests/functional/api/test_yank.py
102
102
  pulp_python/tests/unit/__init__.py
103
103
  pulp_python/tests/unit/test_feeds.py
104
- pulp_python/tests/unit/test_models.py
104
+ pulp_python/tests/unit/test_models.py
105
+ pulp_python/tests/unit/test_simple_templates.py
@@ -7,7 +7,7 @@ build-backend = 'setuptools.build_meta'
7
7
 
8
8
  [project]
9
9
  name = "pulp-python"
10
- version = "3.36.3"
10
+ version = "3.36.5"
11
11
  description = "pulp-python plugin for the Pulp Project"
12
12
  readme = "README.md"
13
13
  authors = [
@@ -79,7 +79,7 @@ ignore = [
79
79
  [tool.bumpversion]
80
80
  # This section is managed by the plugin template. Do not edit manually.
81
81
 
82
- current_version = "3.36.3"
82
+ current_version = "3.36.5"
83
83
  commit = false
84
84
  tag = false
85
85
  parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<alpha>0a)?(?P<patch>\\d+)(\\.(?P<release>[a-z]+))?"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes