{"id":"CVE-2026-126816","kind":"vulnerability","aliases":["CVE-2026-126816"],"related":[],"title":"Improper limitation of a pathname to a restricted directory in the cost report generation tool in AWS Pricing MCP…","description":"CVE-2026-126816 Bulletin for AWS Pricing MCP Server - AWS\n\n### CVE-2026-126816 - Path traversal and arbitrary file write in the cost report generator of aws-pricing-mcp-server\n\nBulletin ID: 2026-184-AWS Scope: AWS Content Type: Important (requires attention) Publication Date: 11/16/2026 12:00 PM PST\n\n Description:\n\nAWS Pricing MCP Server is an open source Model Context Protocol (MCP) server that provides real-time AWS pricing information and cost analysis capabilities to AI assistants.\n\nWe identified CVE-2026-126816, an issue in the cost report generation tool of AWS Pricing MCP Server before version 1.0.31. An actor who can influence the MCP agent might be able to write actor controlled content to locations outside the intended output directory via absolute paths or directory traversal sequences in the report output path. The tool was also annotated as read-only, which can lead MCP clients to auto-approve it without user confirmation.\n\nImpacted versions:\n\n- awslabs.aws-pricing-mcp-server < 1.0.31\n- awslabs.cost-analysis-mcp-server <= 1.0.5\n\nResolution:\n\nThis issue has been addressed in awslabs.aws-pricing-mcp-server version 1.0.31. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes. Users of the deprecated awslabs.cost-analysis-mcp-server package should migrate to awslabs.aws-pricing-mcp-server version 1.0.31 or later, as no patched release of that package will be published.\n\nWorkarounds:\n\nUsers unable to upgrade should remove generate_cost_report from any auto-approve configuration in their MCP client, so that each invocation requires explicit confirmation and the output path can be checked before approving. Users should also avoid passing untrusted content to the agent.\n\nReferences:\n\n- CVE-2026-126816\n- GHSA-mqm3-w68j-75mw\n\nAcknowledgement:\n\nWe would like to thank Ryan von Brubeck for collaborating on this issue through the coordinated vulnerability disclosure process.\n\n Please email aws-security@amazon.com with any s ecurity questions or concerns.","summary":"The cost report generator in AWS Pricing MCP Server accepts absolute paths or directory traversal sequences in its report output path, so content the AI agent controls can be written outside the intended output directory. The tool is also annotated as read-only, so MCP clients may auto-approve it without asking the user.","severity":"medium","cvss":6.8,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["ai-tooling","aws","claude-code","lab-disclosure","mcp","python"],"not_affected_if":["server-not-installed","version-1.0.31-or-later"],"how_to_check":"- Check the installed version of `awslabs.aws-pricing-mcp-server` with `pip show awslabs.aws-pricing-mcp-server`; versions below `1.0.31` are affected.\n- Check whether the deprecated `awslabs.cost-analysis-mcp-server` package is installed; versions `<= 1.0.5` are affected.\n- Check MCP client auto-approve settings for `generate_cost_report`.","fix":"- `awslabs.aws-pricing-mcp-server`: upgrade to `1.0.31` or later.\n- `awslabs.cost-analysis-mcp-server`: no patched release will be published; migrate to `awslabs.aws-pricing-mcp-server` `1.0.31` or later.","status":"open","published_at":"2026-11-16T00:00:00+00:00","first_seen_at":"2026-11-16T20:33:20+00:00","triaged_at":"2026-11-16T20:35:24+00:00","updated_at":"2026-11-16T20:38:45+00:00","category":"ai-tooling","confidence":0.8,"triage":{"at":"2026-11-16T20:35:24Z","model":"claude-haiku-5-5","output":{"fix":"- `awslabs.aws-pricing-mcp-server`: upgrade to `1.0.31` or later.\n- `awslabs.cost-analysis-mcp-server`: no patched release will be published; migrate to `awslabs.aws-pricing-mcp-server` `1.0.31` or later.","reach":"local","title":"AWS Pricing MCP Server: path traversal lets an agent write files anywhere","impact":"medium","summary":"The cost report generator in AWS Pricing MCP Server accepts absolute paths or directory traversal sequences in its report output path, so content the AI agent controls can be written outside the intended output directory. The tool is also annotated as read-only, so MCP clients may auto-approve it without asking the user.","audience":"developers","category":"ai-tooling","nicknames":[],"who_cares":["mcp","aws","python","claude-code"],"confidence":0.8,"fix_status":"available","needs_auth":"no","worst_case":"Agent-controlled content is written to arbitrary file paths on the host","analyst_note":"","how_to_check":"- Check the installed version of `awslabs.aws-pricing-mcp-server` with `pip show awslabs.aws-pricing-mcp-server`; versions below `1.0.31` are affected.\n- Check whether the deprecated `awslabs.cost-analysis-mcp-server` package is installed; versions `<= 1.0.5` are affected.\n- Check MCP client auto-approve settings for `generate_cost_report`.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["version-1.0.31-or-later","server-not-installed"],"who_is_affected":"Teams running the AWS Pricing MCP Server or the deprecated cost-analysis MCP server with an AI assistant that can call the cost report tool. The risk depends on the agent being influenced by untrusted content; teams on `1.0.31` or later, or not using this server, can skip it.","user_interaction":"yes","product_ecosystem":"","needs_special_setup":"no","severity_if_unknown":"medium"},"cost_usd":0.000874,"input_tokens":5249,"output_tokens":699,"severity_before":"unknown"},"analyst_status":null,"analyst_note":null,"search":"'-126816':22A,25A,96C,106C,176C,380C '-184':127C '-2026':21A,24A,95C,105C,175C,379C '00':140C '1.0.31':192C,257C,277C,318C '1.0.5':263C '11/16/2026':138C '12':139C '2026':126C '75mw':385C 'abl':203C 'absolut':48B,217C 'accept':47B 'acknowledg':386C 'actor':194C,206C 'address':269C 'agent':63B,200C,376C 'ai':27B,62B,170C 'ai-tool':26B 'also':76B,231C,369C 'analysi':167C,260C,305C 'analysis-mcp-serv':259C,304C 'annot':77B,232C 'approv':88B,245C,345C,366C 'arbitrari':110C 'ask':91B 'assist':171C 'attent':135C 'auto':87B,244C,344C 'auto-approv':86B,243C,343C 'avoid':370C 'aw':17A,29B,43B,99C,103C,120C,128C,130C,144C,162C,186C 'aws-pricing-mcp-serv':119C 'aws-security@amazon.com':408C 'awslabs.aws':252C,271C,312C 'awslabs.cost':258C,303C 'brubeck':394C 'bulletin':97C,124C 'capabl':168C 'check':364C 'claud':31B 'claude-cod':30B 'client':84B,241C,350C 'code':32B,291C 'collabor':396C 'concern':415C 'configur':346C 'confirm':249C,357C 'content':60B,131C,208C,373C 'context':153C 'control':64B,207C 'coordin':402C 'cost':12A,39B,115C,166C,181C,339C 'cve':20A,23A,94C,104C,174C,378C 'date':137C 'deprec':302C 'deriv':290C 'descript':143C 'directori':9A,51B,72B,215C,220C 'disclosur':35B,404C 'ecur':412C 'email':407C 'ensur':286C 'explicit':356C 'file':111C 'fix':298C 'fork':288C 'generat':14A,41B,117C,183C,338C 'ghsa':382C 'ghsa-mqm3-w68j-75mw':381C 'id':125C 'identifi':173C 'impact':250C 'import':133C 'improp':1A 'incorpor':295C 'influenc':197C 'inform':164C 'intend':70B,213C 'invoc':354C 'issu':178C,266C,399C 'lab':34B 'lab-disclosur':33B 'later':320C 'latest':283C 'lead':239C 'like':389C 'limit':2A 'locat':210C 'may':85B 'mcp':19A,36B,45B,83B,101C,122C,146C,155C,188C,199C,240C,255C,261C,274C,306C,315C,349C 'might':201C 'migrat':310C 'model':152C 'mqm3':383C 'new':297C 'open':150C 'output':57B,71B,214C,226C,360C 'outsid':68B,211C 'packag':308C,327C 'pass':371C 'patch':293C,323C 'path':49B,58B,107C,218C,227C,361C 'pathnam':5A 'pleas':406C 'pm':141C 'price':18A,44B,100C,121C,145C,163C,187C,254C,273C,314C 'pricing-mcp-serv':253C,272C,313C 'process':405C 'protocol':154C 'provid':158C 'pst':142C 'public':136C 'publish':330C 'python':37B 'question':413C 'read':80B,235C 'read-on':79B,234C 'real':160C 'real-tim':159C 'recommend':279C 'refer':377C 'releas':324C 'remov':337C 'report':13A,40B,56B,116C,182C,225C,340C 'requir':134C,355C 'resolut':264C 'restrict':8A 'ryan':392C 'scope':129C 'sequenc':53B,222C 'server':46B,102C,123C,147C,156C,189C,256C,262C,275C,307C,316C 'sourc':151C 'thank':391C 'time':161C 'tool':15A,28B,74B,184C,229C 'travers':52B,108C,221C 'type':132C 'unabl':333C 'untrust':372C 'upgrad':280C,335C 'user':93B,248C,299C,332C,367C 'version':191C,251C,276C,284C,317C 'via':216C 'von':393C 'vulner':403C 'w68j':384C 'without':90B,247C 'workaround':331C 'would':388C 'write':112C,205C 'written':67B","nicknames":[],"mitigations":[],"who_affected":"Teams running the AWS Pricing MCP Server or the deprecated cost-analysis MCP server with an AI assistant that can call the cost report tool. The risk depends on the agent being influenced by untrusted content; teams on `1.0.31` or later, or not using this server, can skip it.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["aitooling","aws","claudecode","labdisclosure","mcp","medium","python"],"campaign_type":null,"search_a":"'-126816':22A,25A '-2026':21A,24A 'aw':17A 'cost':12A 'cve':20A,23A 'directori':9A 'generat':14A 'improp':1A 'limit':2A 'mcp':19A 'pathnam':5A 'price':18A 'report':13A 'restrict':8A 'tool':15A","search_b":"'absolut':48B 'accept':47B 'agent':63B 'ai':27B,62B 'ai-tool':26B 'also':76B 'annot':77B 'approv':88B 'ask':91B 'auto':87B 'auto-approv':86B 'aw':29B,43B 'claud':31B 'claude-cod':30B 'client':84B 'code':32B 'content':60B 'control':64B 'cost':39B 'directori':51B,72B 'disclosur':35B 'generat':41B 'intend':70B 'lab':34B 'lab-disclosur':33B 'may':85B 'mcp':36B,45B,83B 'output':57B,71B 'outsid':68B 'path':49B,58B 'price':44B 'python':37B 'read':80B 'read-on':79B 'report':40B,56B 'sequenc':53B 'server':46B 'tool':28B,74B 'travers':52B 'user':93B 'without':90B 'written':67B","search_c":"'-126816':96C,106C,176C,380C '-184':127C '-2026':95C,105C,175C,379C '00':140C '1.0.31':192C,257C,277C,318C '1.0.5':263C '11/16/2026':138C '12':139C '2026':126C '75mw':385C 'abl':203C 'absolut':217C 'acknowledg':386C 'actor':194C,206C 'address':269C 'agent':200C,376C 'ai':170C 'also':231C,369C 'analysi':167C,260C,305C 'analysis-mcp-serv':259C,304C 'annot':232C 'approv':245C,345C,366C 'arbitrari':110C 'assist':171C 'attent':135C 'auto':244C,344C 'auto-approv':243C,343C 'avoid':370C 'aw':99C,103C,120C,128C,130C,144C,162C,186C 'aws-pricing-mcp-serv':119C 'aws-security@amazon.com':408C 'awslabs.aws':252C,271C,312C 'awslabs.cost':258C,303C 'brubeck':394C 'bulletin':97C,124C 'capabl':168C 'check':364C 'client':241C,350C 'code':291C 'collabor':396C 'concern':415C 'configur':346C 'confirm':249C,357C 'content':131C,208C,373C 'context':153C 'control':207C 'coordin':402C 'cost':115C,166C,181C,339C 'cve':94C,104C,174C,378C 'date':137C 'deprec':302C 'deriv':290C 'descript':143C 'directori':215C,220C 'disclosur':404C 'ecur':412C 'email':407C 'ensur':286C 'explicit':356C 'file':111C 'fix':298C 'fork':288C 'generat':117C,183C,338C 'ghsa':382C 'ghsa-mqm3-w68j-75mw':381C 'id':125C 'identifi':173C 'impact':250C 'import':133C 'incorpor':295C 'influenc':197C 'inform':164C 'intend':213C 'invoc':354C 'issu':178C,266C,399C 'later':320C 'latest':283C 'lead':239C 'like':389C 'locat':210C 'mcp':101C,122C,146C,155C,188C,199C,240C,255C,261C,274C,306C,315C,349C 'might':201C 'migrat':310C 'model':152C 'mqm3':383C 'new':297C 'open':150C 'output':214C,226C,360C 'outsid':211C 'packag':308C,327C 'pass':371C 'patch':293C,323C 'path':107C,218C,227C,361C 'pleas':406C 'pm':141C 'price':100C,121C,145C,163C,187C,254C,273C,314C 'pricing-mcp-serv':253C,272C,313C 'process':405C 'protocol':154C 'provid':158C 'pst':142C 'public':136C 'publish':330C 'question':413C 'read':235C 'read-on':234C 'real':160C 'real-tim':159C 'recommend':279C 'refer':377C 'releas':324C 'remov':337C 'report':116C,182C,225C,340C 'requir':134C,355C 'resolut':264C 'ryan':392C 'scope':129C 'sequenc':222C 'server':102C,123C,147C,156C,189C,256C,262C,275C,307C,316C 'sourc':151C 'thank':391C 'time':161C 'tool':184C,229C 'travers':108C,221C 'type':132C 'unabl':333C 'untrust':372C 'upgrad':280C,335C 'user':248C,299C,332C,367C 'version':191C,251C,276C,284C,317C 'via':216C 'von':393C 'vulner':403C 'w68j':384C 'without':247C 'workaround':331C 'would':388C 'write':112C,205C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T00:00:00+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"ff89ba41-3aa1-4d27-914a-91399e9639e5","poc_count":0,"sources":[{"source":"lab","external_id":"https://aws.amazon.com/security/security-bulletins/2026-184-aws/#CVE-2026-126816","url":"https://aws.amazon.com/security/security-bulletins/2026-184-aws/","severity":null,"published_at":"2026-11-16T00:00:00+00:00","modified_at":null,"first_seen_at":"2026-11-16T20:33:20+00:00","fetched_at":"2026-11-16T20:33:20+00:00","note":"AWS: CVE-2026-126816 Bulletin for AWS Pricing MCP Server - AWS"},{"source":"nvd","external_id":"CVE-2026-126816","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126816","severity":null,"published_at":"2026-11-16T20:19:00+00:00","modified_at":"2026-11-16T20:19:00+00:00","first_seen_at":"2026-11-16T20:38:45+00:00","fetched_at":"2026-11-16T20:38:46+00:00","note":null}],"documents":[{"id":172212,"url":"https://aws.amazon.com/security/security-bulletins/2026-184-aws/","title":"AWS: CVE-2026-126816 Bulletin for AWS Pricing MCP Server - AWS","kind":"advisory","source":"lab","publisher":"research","text":"CVE-2026-126816 Bulletin for AWS Pricing MCP Server - AWS\n\n### CVE-2026-126816 - Path traversal and arbitrary file write in the cost report generator of aws-pricing-mcp-server\n\nBulletin ID: 2026-184-AWS Scope: AWS Content Type: Important (requires attention) Publication Date: 11/16/2026 12:00 PM PST\n\n Description:\n\nAWS Pricing MCP Server is an open source Model Context Protocol (MCP) server that provides real-time AWS pricing information and cost analysis capabilities to AI assistants.\n\nWe identified CVE-2026-126816, an issue in the cost report generation tool of AWS Pricing MCP Server before version 1.0.31. An actor who can influence the MCP agent might be able to write actor controlled content to locations outside the intended output directory via absolute paths or directory traversal sequences in the report output path. The tool was also annotated as read-only, which can lead MCP clients to auto-approve it without user confirmation.\n\nImpacted versions:\n\n- awslabs.aws-pricing-mcp-server < 1.0.31\n- awslabs.cost-analysis-mcp-server <= 1.0.5\n\nResolution:\n\nThis issue has been addressed in awslabs.aws-pricing-mcp-server version 1.0.31. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes. Users of the deprecated awslabs.cost-analysis-mcp-server package should migrate to awslabs.aws-pricing-mcp-server version 1.0.31 or later, as no patched release of that package will be published.\n\nWorkarounds:\n\nUsers unable to upgrade should remove generate_cost_report from any auto-approve configuration in their MCP client, so that each invocation requires explicit confirmation and the output path can be checked before approving. Users should also avoid passing untrusted content to the agent.\n\nReferences:\n\n- CVE-2026-126816\n- GHSA-mqm3-w68j-75mw\n\nAcknowledgement:\n\nWe would like to thank Ryan von Brubeck for collaborating on this issue through the coordinated vulnerability disclosure process.\n\n Please email aws-security@amazon.com with any s ecurity questions or concerns.","published_at":"2026-11-16T00:00:00+00:00","relation":"advisory","confidence":null,"note":null},{"id":172269,"url":"https://github.com/awslabs/mcp/security/advisories/GHSA-mqm3-w68j-75mw","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-11-16T20:08:01+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"},{"id":172331,"url":"https://aws.amazon.com/security/security-bulletins/rss/2026-184-aws/","title":"AWS Security Bulletins: CVE-2026-126816 - Path traversal and arbitrary file write in the cost report generator of aws-pricing-mcp-server","kind":"vendor","source":"vendor","publisher":null,"text":"CVE-2026-126816 - Path traversal and arbitrary file write in the cost report generator of aws-pricing-mcp-server\n\nBulletin ID: 2026-184-AWS Publication Date: 11/16/2026 12:00 PM PST Description: Improper limitation of a pathname to a restricted directory in the cost report generation tool in AWS Pricing MCP Server (aws-pricing-mcp-server) before 1.0.31 might allow an actor who can influence the MCP agent to write actor controlled content to arbitrary locations outside the intended output directory via absolute paths or directory traversal sequences in the report output path. Impacted versions: - awslabs.aws-pricing-mcp-server < 1.0.31 - awslabs.cost-analysis-mcp-server <= 1.0.5 Refer to the article for the most up-to-date and complete information.","published_at":"2026-11-16T20:12:51+00:00","relation":"advisory","confidence":null,"note":"AWS Security Bulletins"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}