https
GET
api.github.com
None
/repos/coopernetes/PyGithub/dependabot/alerts/1
{'Authorization': 'token private_token_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Server', 'GitHub.com'), ('Date', 'Sun, 21 Jan 2024 03:35:49 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"4f4dfb4e1c402c10a899477bc5ee37795feca57fa0a50548c85fae38cf365ee6"'), ('Last-Modified', 'Sun, 21 Jan 2024 03:35:38 GMT'), ('X-OAuth-Scopes', 'admin:repo_hook, repo, workflow, write:packages'), ('X-Accepted-OAuth-Scopes', 'admin:repo_hook, delete_repo, read:repo_hook, repo, repo:invite, repo:status, repo_deployment, security_events, write:repo_hook'), ('github-authentication-token-expiration', '2024-04-19 16:30:08 UTC'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4976'), ('X-RateLimit-Reset', '1705809202'), ('X-RateLimit-Used', '24'), ('X-RateLimit-Resource', 'core'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'A21E:206B:40AD443:8629440:65AC9115')]
{"number":1,"state":"dismissed","dependency":{"package":{"ecosystem":"pip","name":"jinja2"},"manifest_path":"requirements/docs.txt","scope":"runtime"},"security_advisory":{"ghsa_id":"GHSA-h5c8-rqwp-cp95","cve_id":"CVE-2024-22195","summary":"Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter","description":"The `xmlattr` filter in affected versions of Jinja accepts keys containing spaces. XML/HTML attributes cannot contain spaces, as each would then be interpreted as a separate attribute. If an application accepts keys (as opposed to only values) as user input, and renders these in pages that other users see as well, an attacker could use this to inject other attributes and perform XSS. Note that accepting keys as user input is not common or a particularly intended use case of the `xmlattr` filter, and an application doing so should already be verifying what keys are provided regardless of this fix.","severity":"medium","identifiers":[{"value":"GHSA-h5c8-rqwp-cp95","type":"GHSA"},{"value":"CVE-2024-22195","type":"CVE"}],"references":[{"url":"https://github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22195"},{"url":"https://github.com/pallets/jinja/commit/716795349a41d4983a9a4771f7d883c96ea17be7"},{"url":"https://github.com/pallets/jinja/releases/tag/3.1.3"},{"url":"https://github.com/advisories/GHSA-h5c8-rqwp-cp95"}],"published_at":"2024-01-11T15:20:48Z","updated_at":"2024-01-11T15:20:50Z","withdrawn_at":null,"vulnerabilities":[{"package":{"ecosystem":"pip","name":"jinja2"},"severity":"medium","vulnerable_version_range":"< 3.1.3","first_patched_version":{"identifier":"3.1.3"}}],"cvss":{"vector_string":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4},"cwes":[{"cwe_id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"}]},"security_vulnerability":{"package":{"ecosystem":"pip","name":"jinja2"},"severity":"medium","vulnerable_version_range":"< 3.1.3","first_patched_version":{"identifier":"3.1.3"}},"url":"https://api.github.com/repos/coopernetes/PyGithub/dependabot/alerts/1","html_url":"https://github.com/coopernetes/PyGithub/security/dependabot/1","created_at":"2024-01-20T17:12:38Z","updated_at":"2024-01-21T03:35:38Z","dismissed_at":"2024-01-21T03:35:38Z","dismissed_by":{"login":"coopernetes","id":57812123,"node_id":"MDQ6VXNlcjU3ODEyMTIz","avatar_url":"https://avatars.githubusercontent.com/u/57812123?v=4","gravatar_id":"","url":"https://api.github.com/users/coopernetes","html_url":"https://github.com/coopernetes","followers_url":"https://api.github.com/users/coopernetes/followers","following_url":"https://api.github.com/users/coopernetes/following{/other_user}","gists_url":"https://api.github.com/users/coopernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/coopernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coopernetes/subscriptions","organizations_url":"https://api.github.com/users/coopernetes/orgs","repos_url":"https://api.github.com/users/coopernetes/repos","events_url":"https://api.github.com/users/coopernetes/events{/privacy}","received_events_url":"https://api.github.com/users/coopernetes/received_events","type":"User","site_admin":false},"dismissed_reason":"tolerable_risk","dismissed_comment":"Example comment","fixed_at":null,"auto_dismissed_at":null}
