pembrolizumab in treating younger patients with recurrent, progressive, or refractory high-grade gliomas, diffuse intrinsic pontine gliomas, hypermutated brain tumors, ependymoma or medulloblastoma

Conditions: Constitutional Mismatch Repair Deficiency Syndrome; Lynch Syndrome; Malignant Glioma; Recurrent Brain Neoplasm; Recurrent Childhood Ependymoma; Recurrent Diffuse Intrinsic Pontine Glioma; Recurrent Medulloblastoma; Refractory Brain Neoplasm; Refractory Diffuse Intrinsic Pontine Glioma; Refractory Ependymoma; Refractory Medulloblastoma

Summary: this phase i trial studies the side effects and best dose of pembrolizumab and to see how well it works in treating younger patients with high-grade gliomas (brain tumors that are generally expected to be fast growing and aggressive), diffuse intrinsic pontine gliomas (brain stem tumors), brain tumors with a high number of genetic mutations, ependymoma or medulloblastoma that have come back (recurrent), progressed, or have not responded to previous treatment (refractory). immunotherapy with monoclonal antibodies, such as pembrolizumab, may induce changes in the body's immune system, and may interfere with the ability of tumor cells to grow and spread.

primary objectives: i. to establish the safety and describe adverse effects associated with administration of the adult recommended dose of pembrolizumab (mk-3475) in each stratum separately. ii. to estimate the sustained objective response rate, (complete response \[cr\] + partial response \[pr\], sustained for at least 9 weeks) associated with pembrolizumab (mk-3475) treatment for pediatric patients with recurrent, progressive or refractory diffuse intrinsic pontine glioma (dipg), non-brainstem high grade glioma (nb-hgg), ependymoma or medulloblastoma. iii. to establish the safety and describe adverse effects associated with administration of the adult recommended dose of pembrolizumab (mk-3475) in pediatric patients with progressive or recurrent hypermutated tumors, including those with constitutional mismatch-repair deficiency (cmmrd) syndrome. iv. to estimate the sustained response rate of pediatric patients with progressive or recurrent hypermutated nb-hgg, including those with cmmrd syndrome, treated with pembrolizumab (mk-3475). v. to determine changes in the immunophenotypic profile of pd-1hi cd8+ t cells from serial peripheral blood samples obtained before and during treatment with pembrolizumab (mk-3475) in pediatric patients with hypermutated brain tumors, including those with cmmrd syndrome. secondary objectives: i. to assess the relationship between outcome (response and progression-free survival) and potential biomarkers, including pd-l1 expression, patient immunophenotype, ribonucleic acid (rna) signature profile, mutational profile, tumor gene expression and circulating tumor deoxyribonucleic acid (dna) (ctdna). ii. to estimate the duration of objective response in patients with measurable disease at baseline and estimate progression-free/event-free/overall survival for patients in each stratum treated with pembrolizumab (mk-3475). iii. to evaluate pd-l1 expression on archival tissue obtained from pediatric patients with eligible primary central nervous system (cns) tumors. iv. to examine the ability of quantitative magnetic resonance (mr) spectroscopy and diffusion/weighted imaging/apparent diffusion coefficient (adc) mapping to provide early assessment of tumor behavior and specifically distinguish pseudoprogression/tumor inflammation from tumor progression. v. to explore the use of serial mr permeability (dynamic contrast-enhanced \[dce\]) and mr perfusion (dynamic susceptibility contrast \[dsc\]) to determine if elevated relative cerebral blood volume (rcbv) and transfer coefficient (ktrans) can distinguish pseudoprogression/tumor inflammation from tumor progression in tumors treated on this protocol. vi. to characterize biomarkers, patient immunophenotyping, mutational load (as determined by whole exome sequencing), the tumor gene expression profile and ctdna in patients receiving pembrolizumab (mk-3475). vii. to estimate the duration of objective response, progression-free survival/event free survival and document overall survival of pediatric patients with progressive or recurrent hypermutated nb-hgg, including those with cmmrd syndrome, treated with pembrolizumab (mk-3475). viii. to estimate the progression-free survival (pfs) of all patients enrolled on stratum c and sustained objective response rate of pediatric patients with hypermutated progressive low grade gliomas including those with cmmrd, treated with pembrolizumab (mk-3475). ix. to categorize the t-cell receptor repertoire in pd-1+ cells obtained from peripheral blood or from tumor tissue, when available, before and after treatment with pembrolizumab (mk-3475) in pediatric patients treated in stratum c (hypermutated brain tumors). x. to define the specificity of t-cell receptors against tumor antigens identified in objective ix. xi. to characterize functional features of t-cell populations after pembrolizumab (mk-3475) treatment and relate these findings to epigenetic programs within these cells. outline: patients receive pembrolizumab intravenously (iv) over 30 minutes on day 1. treatment repeats every 21 days for 34 cycles in the absence of disease progression or unacceptable toxicity. patients also undergo standard magnetic resonance imaging (mri), dynamic contrast-enhanced magnetic resonance (mr) perfusion (dce permeability) mri, diffusion tensor imaging (dti), dynamic susceptibility contrast-perfusion-weighted imaging (dsc perfusion) mri, diffusion weighted imaging (mr diffusion imaging) and may undergo mr spectroscopy as well as cerebrospinal fluid (csf) and blood sample collection during screening and on study. after completion of study treatment, patients are followed up at 30 days, every 3 months for 1 year, then every 6 months for up to 3 years.

Eligibility criteria:
inclusion criteria: * inclusion criteria for strata a, b, d and e * tumor: patient must have one of the following diagnoses to be eligible: * stratum a, currently closed to enrollment: patients must have a recurrent, progressive or refractory dipg following radiation therapy with or without chemotherapy * histologic diagnosis is not required for patients with typical imaging findings of dipg (defined as patients with a diffuse expansile mass centered in and involving at least 2/3 of the pons); patients with brainstem tumors who have undergone biopsy with a diagnosis of high-grade glioma or diffuse infiltrating glioma are also eligible * stratum b: patients must have a histologically confirmed diagnosis of a non-brainstem high-grade glioma (nb-hgg) that is recurrent, progressive or refractory following therapy which included radiotherapy; spinal primary disease is eligible * stratum d: patients must have a histologically confirmed diagnosis of ependymoma that is recurrent, progressive or refractory following therapy which included radiotherapy * stratum e: patients must have a histologically confirmed diagnosis of medulloblastoma that is recurrent, progressive or refractory following therapy which included radiotherapy * patients must have adequate pre-trial formalin-fixed paraffin-embedded (ffpe) tumor material available for use in the biology studies mutational analysis and genome wide sequencing for each stratum * patients with dipg who have tissue available are requested to submit similar tissue as patients in other strata; however, this is not required for eligibility * all subjects must have measurable disease in 2-dimensions on mri scan of the brain; disease should be consistently measured with the two largest perpendicular dimensions * patient must be \>= 1 but =\< 18 years of age at the time of enrollment during the safety portion. patients \< 22 may be enrolled during the efficacy portion of the study. * patients must have received prior radiation therapy and/or chemotherapy and recovered from the acute treatment related toxicities (defined as =\< grade 1 if not defined in eligibility criteria) of all prior chemotherapy, immunotherapy or radiotherapy prior to entering this study; there is no upper limit to the number of prior therapies that is allowed * patients must have received their last dose of known myelosuppressive anticancer therapy at least three (3) weeks prior to study enrollment or at least six (6) weeks if prior nitrosourea * biologic or investigational agent (anti-neoplastic): patient must have received their last dose of the investigational or biologic agent \>= 7 days prior to study enrollment * for agents that have known adverse events occurring beyond 7 days after administration, this period must be extended beyond the time during which adverse events are known to occur; the duration must be discussed with and approved by the study chair * monoclonal antibody treatment and/or agents with prolonged half-lives: patient must have recovered from any acute toxicity potentially related to the agent and received their last dose of the agent \>= 28 days prior to study enrollment * patient must have completed immunotherapy (e.g. tumor vaccines, oncolytic viruses, etc.) at least 42 days prior to enrollment * patients must have had their last fraction of: * craniospinal irradiation \>= 3 months prior to enrollment * other substantial bone marrow irradiation \>= 6 weeks prior to enrollment * local palliative radiation therapy (xrt) (small port) \>= 2 weeks * patient must be \>= 12 weeks since autologous bone marrow/stem cell transplant prior to enrollment * patients must be fully recovered from all acute effects of prior surgical intervention * both males and females of all races and ethnic groups are eligible for this study * patients with neurological deficits should have deficits that are completely stable for a minimum of 1 week (7 days) prior to enrollment * karnofsky performance scale (kps for \> 16 years of age) or lansky performance score (lps for =\ = 70; patients who are unable to walk because of neurologic deficits, but who are up in a wheelchair, will be considered ambulatory for the purpose of assessing the performance score * absolute neutrophil count \>= 1000 cells/ul * platelets \>= 75,000 cells /ul (unsupported, defined as no platelet transfusion within 7 days) * hemoglobin \>= 8 g/dl (may receive transfusions) * total bilirubin =\< 1.5 times institutional upper limit of normal (uln) * alanine aminotransferase (alt) (serum glutamate pyruvate transaminase \[sgpt\]) =\< 3 x institutional upper limit of normal * albumin \>= 2 g/dl * serum creatinine based on age/gender as noted below; patients that do not meet the criteria below but have a 24 hour creatinine clearance or glomerular filtration rate (gfr) (radioisotope or iothalamate) \>= 70 ml/min/1.73 m\^2 are eligible * age: 1 to \< 2 years; maximum serum creatinine (mg/dl): 0.6 (male); 0.6 (female) * age: 2 to \< 6 years; maximum serum creatinine (mg/dl): 0.8 (male); 0.8 (female) * age: 6 to \< 10 years; maximum serum creatinine (mg/dl): 1 (male); 1 (female) * age: 10 to \< 13 years; maximum serum creatinine (mg/dl): 1.2 (male); 1.2 (female) * age: 13 to \< 16 years; maximum serum creatinine (mg/dl): 1.5 (male); 1.4 (female) * age: \>= 16 years; maximum serum creatinine (mg/dl): 1.7 (male); 1.4 (female) * pulse oximetry \> 93% on room air and no evidence of dyspnea at rest * human immunodeficiency virus (hiv)- infected patients on effective anti-retroviral therapy with undetectable viral load within 6 months are eligible for this trial * patients must be off all colony-forming growth factor(s) for at least 1 week prior to registration (e.g. filgrastim, sargramostim, erythropoietin); 2 weeks must have elapsed for long-acting formulations * patients must be willing to use brief courses (at least 72 hours) of steroids as directed for potential inflammatory side effects of the therapy if recommended by their treating physician * female subjects of childbearing potential must not be pregnant or breast-feeding; female patients of childbearing potential must have a negative serum or urine pregnancy test within 72 hours prior to receiving the first dose of study medication; if the urine test is positive or cannot be confirmed as negative, a serum pregnancy test will be required; pregnant women are excluded from this study because pembrolizumab (mk-3475) is an agent with the potential for teratogenic effects; because there is unknown but potential risk for adverse events in nursing infants secondary to treatment of the mother with pembrolizumab (mk-3475), breastfeeding should be discontinued if the mother is to be treated with pembrolizumab (mk-3475) * patients of childbearing or child fathering potential must be willing to use 2 methods of birth control or be surgically sterile or abstain from heterosexual activity while being treated on this study and for 4 months after the last dose of study medication * the patient or parent/guardian is able to understand the consent and is willing to sign a written informed consent document, inclusive of assent where appropriate, according to institutional guidelines * stratum c: diagnosis of hypermutated brain tumors patients with brain tumors and increased tumor mutation burden as determined by * confirmed diagnosis of cmmrd syndrome by clinical laboratory improvement act (clia)-certified germline gene sequencing or * confirmation of high mutation burden by whole genome/exome sequencing performed in a clia-certified laboratory and/or the use of foundation one next generation sequence panel or another clia approved targeted sequencing lab with publicly available correlations between number of mutations found in the panel and mutations per megabase and/or genome; for protocol purposes a high mutation burden will be defined as at least 180 non-synonymous coding-region mutations by whole exome/genome sequencing (well above two standard deviations of the number of median similar mutations described in pediatric cns cancers) and/or a high tumor mutation burden (tmb) or intermediate tmb based on the reporting parameters of the panel; tmb parameters provided for the foundation one panel are as follows: high tmb is \>= 20 mutations per megabase or intermediate tmb is between 6 to 19 mutations per megabase or * confirmed diagnosis of lynch syndrome by clia-certified germline gene sequencing; patients with lynch syndrome will not be accounted for in primary objective unless their tumors are determined to have the minimum number of mutations described above but they will still be eligible for this study * low-grade tumors in patients with cmmrd or lynch syndrome do not have to reach the threshold of 100 mutations for study inclusion * stratum c: patients must have a histologically confirmed primary brain tumor that is recurrent, progressive or refractory; inclusion criteria encompasses all types of brain tumors (e.g. gliomas, embryonal tumors or any other type of brain tumor as long as other eligibility criteria are met; * patients with high-grade gliomas are eligible for this clinical trial at least 2 weeks after completion of radiotherapy independent of tumor progression/recurrence as long as they are not enrolled on any other therapeutic clinical trial and there is macroscopic residual disease * patients with other concomitant tumors associated with cmmrd and lynch syndrome including gastrointestinal polyps/adenomas and carcinomas, lymphomas and leukemias will be eligible as long as they are not requiring anticancer therapy directed against these other cancers and meet all other eligibility criteria * stratum c: patients must have adequate pre-trial ffpe tumor material available and be willing to provide a blood sample for use in the genome wide sequencing studies; while tissue is required for genome-wide sequencing of tumor and germline samples, patients will be deemed eligible for the study with a minimum of approximately 10 unstained slides for the planned analysis * stratum c: subjects must have measurable disease in 2-dimensions on mri scan of the brain and/or spine with the exception allowed for non-progressed hggs; disease should be consistently measured with the two largest perpendicular dimensions * stratum c: patient should be \< 30 years at the time of enrollment * stratum c: patients must have received prior radiotherapy and/or chemotherapy with the following exceptions: * patients with secondary cns cancers after a previous medical problem/malignancy who cannot receive full dose of radiotherapy (\> 50 gy) as long as they meet all other eligibility criteria * patients with progressive low-grade gliomas and cmmrd or lynch syndrome patients must have recovered from the acute treatment related toxicities (defined as =\< grade 1 if not defined in eligibility criteria) of all prior chemotherapy, immunotherapy or radiotherapy prior to entering this study; there is no upper limit to the number of prior therapies that is allowed * stratum c: patients must have received their last dose of known myelosuppressive anticancer therapy at least three (3) weeks prior to study enrollment or at least six (6) weeks if prior nitrosourea * stratum c: patient must have received their last dose of the investigational or biologic agent \>= 7 days prior to study enrollment * for agents that have known adverse events occurring beyond 7 days after administration, this period must be extended beyond the time during which adverse events are known to occur; the duration must be discussed with and approved by the study chair * stratum c: monoclonal antibody treatment and/or agents with prolonged half-lives: patient must have recovered from any acute toxicity potentially related to the agent and received their last dose of the agent \>= 28 days prior to study enrollment * stratum c: patient must have completed immunotherapy (e.g. tumor vaccines, oncolytic viruses, etc.) at least 42 days prior to enrollment * stratum c: patients must have had their last fraction of: * craniospinal irradiation \>= 3 months prior to enrollment * other substantial bone marrow irradiation \>= 6 weeks prior to enrollment * local palliative xrt (small port) \>= 2 weeks * stratum c: patient must be: * \>= 12 weeks since autologous bone marrow/stem cell transplant prior to enrollment * \>= 5 years since allogeneic stem cell transplant prior to enrollment with no evidence of active graft versus (vs.) host disease * stratum c: patients must be fully recovered from all acute effects of prior surgical intervention * stratum c: both males and females of all races and ethnic groups are eligible for this study * stratum c: patients with neurological deficits should have deficits that are completely stable for a minimum of 1 week (7 days) prior to enrollment * stratum c: karnofsky performance scale (kps for \> 16 years of age) or lansky performance score (lps for =\ = 60; patients who are unable to walk because of neurologic deficits, but who are up in a wheelchair, will be considered ambulatory for the purpose of assessing the performance score * stratum c: absolute neutrophil count \>= 1000 cells/ul * stratum c: platelets \>= 75,000 cells/ul (unsupported, defined as no platelet transfusion within 7 days) * stratum c: hemoglobin \>= 8 g/dl (may receive transfusions) * stratum c: total bilirubin =\< 1.5 times institutional upper limit of normal (uln) * stratum c: alt (sgpt) =\< 3 x institutional upper limit of normal * stratum c: albumin \>= 2 g/dl * stratum c: serum creatinine based on age/gender as noted below; patients that do not meet the criteria below but have a 24 hour creatinine clearance or gfr (radioisotope or iothalamate) \>= 70 ml/min/1.73 m\^2 are eligible * age: 1 to \< 2 years; maximum serum creatinine (mg/dl): 0.6 (male); 0.6 (female) * age: 2 to \< 6 years; maximum serum creatinine (mg/dl): 0.8 (male); 0.8 (female) * age: 6 to \< 10 years; maximum serum creatinine (mg/dl): 1 (male); 1 (female) * age: 10 to \< 13 years; maximum serum creatinine (mg/dl): 1.2 (male); 1.2 (female) * age: 13 to \< 16 years; maximum serum creatinine (mg/dl): 1.5 (male); 1.4 (female) * age: \>= 16 years; maximum serum creatinine (mg/dl): 1.7 (male); 1.4 (female) * stratum c: pulse oximetry \> 93% on room air and no evidence of dyspnea at rest * stratum c: hiv- infected patients on effective anti-retroviral therapy with undetectable viral load within 6 months are eligible for this trial * stratum c: patients must be off all colony-forming growth factor(s) for at least 1 week prior to registration (i.e. filgrastim; sargramostim; erythropoietin); 2 weeks must have elapsed for long-acting formulations * stratum c: patients must be willing to use brief courses (at least 72 hours) of steroids as directed for potential inflammatory side effects of the therapy if recommended by their treating physician * stratum c: female subjects of childbearing potential must not be pregnant or breast-feeding; female patients of childbearing potential must have a negative serum or urine pregnancy test within 72 hours prior to receiving the first dose of study medication; if the urine test is positive or cannot be confirmed as negative, a serum pregnancy test will be required; pregnant women are excluded from this study because pembrolizumab (mk-3475) is an agent with the potential for teratogenic effects; because there is unknown but potential risk for adverse events in nursing infants secondary to treatment of the mother with pembrolizumab (mk-3475), breastfeeding should be discontinued if the mother is to be treated with pembrolizumab (mk-3475) * stratum c: patients of childbearing or child fathering potential must be willing to use 2 methods of birth control or be surgically sterile or abstain from heterosexual activity while being treated on this study and for 4 months after the last dose of study medication * stratum c: the patient or parent/guardian is able to understand the consent and is willing to sign a written informed consent document, inclusive of assent where appropriate, according to institutional guidelines exclusion criteria: * exclusion criteria for strata a, b, d and e * concurrent illness * patients with active autoimmune disease or documented history of autoimmune disease/syndrome that requires ongoing systemic steroids or systemic immunosuppressive agents, except * patients with vitiligo or resolved asthma/atopy * patients with hypothyroidism stable on hormone replacement or sjogren's syndrome * history of or ongoing pneumonitis or significant interstitial lung disease note: this would include non-infectious pneumonitis that required steroid use * patients with any clinically significant unrelated systemic illness (serious infections or significant cardiac, pulmonary, hepatic or other organ dysfunction), that in the opinion of the investigator would compromise the patient's ability to tolerate protocol therapy, put them at additional risk for toxicity or would interfere with the study procedures or results * patients with other current malignancies * patients with known hypermutated brain tumors including those with cmmrd and lynch syndrome are ineligible for enrollment in strata a, b, d and e * patients who have received a solid organ transplant * patients with bulky tumor on imaging are ineligible; treating physicians are encouraged to contact the study chair to request a rapid central imaging review to confirm fulfilment of these eligibility criteria, if they have concerns bulk tumor is defined as: * tumor with evidence of clinically significant uncal herniation or midline shift * tumor with diameter of \> 5 cm in one dimension on t2/fluid attenuated inversion recovery (flair) * tumor that in the opinion of the site investigator, shows significant mass effect in either the brain or spine * multi-focal/ metastatic disease: note: multiple foci of enhancement in a single flair abnormality is permissible and will not exclude the subject * patients with multi-focal parenchymal disease are ineligible * patients with leptomeningeal metastatic disease are eligible; this includes disease that is discrete from the primary lesion but that has a radiographic appearance consistent with leptomeningeal spread, rather than likely trans-parenchymal spread * strata b, d and e - patients whose tumor has a significant component involving the brainstem or with significant fourth ventricular compression are ineligible * patients who are receiving any other anti-cancer or investigational drug therapy are ineligible * patients who have a known active hepatitis b or hepatitis c infection are ineligible; patient must have documented evidence of negative tests for the presence of hepatitis b surface antigen and hepatitis c (anti-hepatitis c virus \[hcv\] antibody or hepatitis \[hep\] c rna-qualitative) * patients who have received the last vaccination of a live vaccine =\< 30 days prior to enrollment are ineligible; examples of live vaccines include, but are not limited to, the following: measles, mumps, rubella, varicella, yellow fever, rabies, bacillus calmette-guerin (bcg), and typhoid (oral) vaccine; seasonal influenza vaccines for injection are generally killed virus vaccines and are allowed; however, intranasal influenza vaccines (e.g. flu-mist \[registered trademark\]) are live attenuated vaccines, and must meet timeline for live vaccine * patients with a history severe (\>= grade 3) hypersensitivity reaction to a monoclonal antibody are ineligible * patients who have received previous therapy with an anti-ctla4, anti-cd137